View Single Post
 
Old 02-27-2024, 01:24 AM
RRB's Avatar
RRB RRB is offline Windows 11 Office 2021
Susan Flamingo
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default Macro to run anytime any doc is opened

Hi friends!

I want a macro to run anytime any doc is opened. I put the following in the normal.dotm:
Sub document_open()

MsgBox "Stay focused!"

With ActiveWindow.View.RevisionsFilter
.Markup = wdRevisionsMarkupNone
end sub
But if the normal.dotm is already open in another doc it doesn't execute when I open another doc. Is there a way to get this to run without adding to every doc itself?

Thank you and have a good day!

Susan Flamingo
Reply With Quote