Hi,
how do you write the code to automatically click the "no" button in a dialog box?
At the moment my code executes a command, then a dialog box pops up asking me if I want to apply it to the whole document. This happens three times during the execution of my macro and I have to manually press "no" each time.
Is there a way around this?
doesn't work as it simply selects "Yes" in each case.
how do you write the code to automatically click the "no" button in a dialog box?
At the moment my code executes a command, then a dialog box pops up asking me if I want to apply it to the whole document. This happens three times during the execution of my macro and I have to manually press "no" each time.
Is there a way around this?
Code:
Application.DisplayAlerts = False