I have a long-running macro and want to display a “Macro running… please wait” rectangle box. So, I created a box and then hid it. Here is my code (abbreviated for illustrative purposes):
Sheet1.Shapes(“Box”).Visisble = True
… other lines of code …
Sheet1.Shapes(“Box”).Visible = False
Strangely, running that macro does not result in first displaying the box, then running the code, then hiding the box. Instead, my code runs and then the box flashes and disappears in an instant. The total time for the macro is about 10 seconds… so I cannot understand why the box is not visible during that whole duration. How can my macro lines in between the show/hide be running before the box is shown?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>Or am I missing something here?
Sheet1.Shapes(“Box”).Visisble = True
… other lines of code …
Sheet1.Shapes(“Box”).Visible = False
Strangely, running that macro does not result in first displaying the box, then running the code, then hiding the box. Instead, my code runs and then the box flashes and disappears in an instant. The total time for the macro is about 10 seconds… so I cannot understand why the box is not visible during that whole duration. How can my macro lines in between the show/hide be running before the box is shown?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>Or am I missing something here?