开发者

How do I 'wait' for a certain dialogue in a Word document macro?

开发者 https://www.devze.com 2023-01-19 12:41 出处:网络
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 i

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

0

精彩评论

暂无评论...
验证码 换一张
取 消