Hi Folks,
Got a new one for you all. I am trying to show and hide a shape when a macro is running. The shape is called "error_check_status". The following code works when I step through it, but when I actually run the code, the shape doesn't appear at all.
I've tried removing the ScreenUpdate code as well as adding a WAIT for 5 seconds before continuing, but neither of those methods are working to allow for the shape to have time to "load".
Any ideas as to why the code works when it is stepped through, but not when it is normally run?
Thanks,
Mike
Got a new one for you all. I am trying to show and hide a shape when a macro is running. The shape is called "error_check_status". The following code works when I step through it, but when I actually run the code, the shape doesn't appear at all.
I've tried removing the ScreenUpdate code as well as adding a WAIT for 5 seconds before continuing, but neither of those methods are working to allow for the shape to have time to "load".
Any ideas as to why the code works when it is stepped through, but not when it is normally run?
Code:
Sub error_check()
Application.ScreenUpdating = True 'Turns on visible Updates while the macro is running
ActiveWorkbook.Sheets("menu").Shapes("error_check_status").Visible = False 'Turns off "ERROR CHECK IN PROGRESS..." Shape
ActiveWorkbook.Sheets("menu").Shapes("error_check_status").Visible = True 'Turns on "ERROR CHECK IN PROGRESS..." Shape
Application.ScreenUpdating = False 'Turns Off visible Updates while the macro is running
'More Code
Thanks,
Mike