Forum Discussion
rodsan724
Oct 29, 2021Brass Contributor
How can I use VBA to move my shape and then after a few seconds make it disappear
So with help from a similar thread here, I can move the shape as desired, how would I make that shape disappear after a few seconds? And then reappear after another cell selection? So in other wo...
- Oct 29, 2021
See the attached version. There is code in three modules:
ThisWorkbook - to stop scheduling the HideShape macro when the workbook is closed.
Sheet1 - the Worksheet_SelectionChange event procedure.
Module1 - to declare the dtmNext variable and the HideShape macro.
HansVogelaar
Oct 29, 2021MVP
See the attached version. There is code in three modules:
ThisWorkbook - to stop scheduling the HideShape macro when the workbook is closed.
Sheet1 - the Worksheet_SelectionChange event procedure.
Module1 - to declare the dtmNext variable and the HideShape macro.
- rodsan724Oct 29, 2021Brass Contributorwhat is the concern of stop scheduling when the file/workbook is closed?
- HansVogelaarOct 29, 2021MVP
If you don't do that, and if the shape were still visible when you close the workbook, the scheduled macro would reopen the workbook in order to run.