TheInsider
Programmer
Hi,
I'm attempting to change the foreground fill-color of various shapes via VBA code, as follows:
Visio.ActivePage.Shapes("Sheet.61").Cells("FillForegnd").Formula = "RGB(255,0,0)"
This works with some shapes but not with others. The funny thing is, after the code executes, the Shapesheet reflects the new value, and if I right-click the shape and select Format->Fill..., the dialog box will display the correct (new) fill color. However, the shape, itself, never changes color!
Has anyone seen this phenomenon before? Is it a bug in Visio, or am I supposed to refresh the drawing somehow? I tried saving the drawing and then closing & reopening, but the color doesn't change.
TIA
I'm attempting to change the foreground fill-color of various shapes via VBA code, as follows:
Visio.ActivePage.Shapes("Sheet.61").Cells("FillForegnd").Formula = "RGB(255,0,0)"
This works with some shapes but not with others. The funny thing is, after the code executes, the Shapesheet reflects the new value, and if I right-click the shape and select Format->Fill..., the dialog box will display the correct (new) fill color. However, the shape, itself, never changes color!
Has anyone seen this phenomenon before? Is it a bug in Visio, or am I supposed to refresh the drawing somehow? I tried saving the drawing and then closing & reopening, but the color doesn't change.
TIA