This is an interesting one, but hopefully an easy fix.
I have the following code below. It automatically closes a workbook after a set time, and works fine in doing so.
Problem is, it runs as soon as the workbook is opened... because of this, it seems to run before excel executes any initial warnings or yes/no pop ups. For instance, Security warning: "Do you want to make this file a Trusted Document?" only pops up after I stop the code... I want to delay the code below from running for say 30 seconds so that this warning can be submitted.
Otherwise, it acts like the warning is running in the background and therefore will not let the user click any of the toolbars/buttons.
I have triedbut this did not work and just span the cursor for 30 secs.![]()
Please Login or Register to view this content.
Please amend code below with added delay if possible/or adjust code if it could be written better and current issue could be avoided. Thanks in advance.
![]()
Please Login or Register to view this content.
Bookmarks