How do I 'wait' for a certain dialogue in a Word document macro?
I’ve got a macro that does a sea开发者_Python百科rch/replace in a selection but at the end of the task it shows the 'Do you want to search the remainder of the document' dialogue and I never want it to search the remainder so I’d like to have it click ‘n’ and then continue with the rest of the doc.
In is there a way to do this?
Use:
Application.DisplayAlerts = wdAlertsNone
edit: More detail on the property here- http://msdn.microsoft.com/en-us/library/aa212820(office.11).aspx
精彩评论