SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to mark an Excel cell as changed so its value will be published to Master Data Services?


How to mark an Excel cell as changed so its value will be published to Master Data Services?

Author
Message
acapone
acapone
Valued Member
Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)

Group: General Forum Members
Points: 56 Visits: 72
I am writing some Excel VBA code to go along with the MDS add-in so our users will have an easier time sorting, filtering, and publishing data.

The code I wrote populates some cells with data from another sheet whenever the user makes a change in a certain column. The code is working and populating the correct cells with the right data; but, when I press publish the newly populated cells do not publish.

I have noticed that the cells do not change color when they are automatically populated by the procedure. Is there a procedure, method, or something that I can use on these cells to make MDS see that there has been a change so that they will be published when the publish button is pressed?

The code I am using to populate the cells looks like this:

Cells(RowNum, ColNum).Offset(0, 5) = Category
Cells(RowNum, ColNum).Offset(0, 7) = Style


acapone
acapone
Valued Member
Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)

Group: General Forum Members
Points: 56 Visits: 72
It looks like I figured it out.

I had Application.EnableEvents set to False in the code which was preventing the cells to be marked as changed for MDS. I simply put
Application.EnableEvents = True

before the code that populates the cells with the data. Now the newly populated cells are highlighted and ready to be published to MDS.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search