CMIIandExcel
Board Regular
- Joined
- Sep 4, 2009
- Messages
- 190
Hi all
I am having a problem when using application.displayalerts and it has me scratching my head a bit.
I am using this to supress the alert when deleting a worksheet:
When I hover over display alerts it shows true (after the initial change) however the debug prints it as false. I get the alert so it is not working.
to further complicate things if i run the identical code from an excel file located on my USB drive I dont have the problem, but when the excel file is on our network it occurs.
Any thoughts?
I have found a number of references to simular issues but not one with a clear answer
Thanks in advance
Mike
I am having a problem when using application.displayalerts and it has me scratching my head a bit.
I am using this to supress the alert when deleting a worksheet:
Code:
Application.DisplayAlerts = False
Debug.Print Application.DisplayAlerts
sh.Delete
Application.DisplayAlerts = True
When I hover over display alerts it shows true (after the initial change) however the debug prints it as false. I get the alert so it is not working.
to further complicate things if i run the identical code from an excel file located on my USB drive I dont have the problem, but when the excel file is on our network it occurs.
Any thoughts?
I have found a number of references to simular issues but not one with a clear answer
Thanks in advance
Mike