I'm trying to get Visio to update the fill colour of each shape immediately after I change it.
I've tried using various methods - screenupdate, showchanges, sendkeys "%^g" but nothing works with the colour. Only changing the screen size by 0.01% forces the app to change the text, which is at least something.
I can step through the code and it works but when I run it none of the colours change until the end.
I'm changing the colour of each object using:
Application.ActiveWindow.Page.Shapes.ItemFromID(servshape(y - 1)).CellsU("Fillforegnd").FormulaU = "RGB(253, 190, 0)"
The code runs through a list of dates and changes the colour of the objects when required, problem is it only shows the changes at the end.
The loop through each item in the list is approximately one second, long enough to see any change. I was hoping there was a simple refresh command but that only seems to work with datarecordsets.
Is there any way of refreshing an object fill colour immediately after changing it?