Hi All,
I created a macro to make some find and replace actions.
However, when the macro runs a notification screen pops up where the user has to select Y or N. This is the message I'm getting:
"Word has finished searching the selection. 22 replacements were made. Do you want to search the remainder of the document?"
Is there a way I can automatically set the answer to Yes in order not to get this warning every time?
regards,
Not 100% sure but maybe:
Application.DisplayAlerts = wdAlertsNone ' your code Application.DisplayAlerts = wdAlertsAll
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
I don't know about macros for Word documents but working in Excel it would be
Your CodeApplication.DisplayAlerts = False
Application.DisplayAlerts = True
Thanks,
It worked great.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks