View Single Post
 
Old 10-15-2022, 08:57 AM
PatrickOfLondon PatrickOfLondon is offline Windows 11 Office 2016
Novice
 
Join Date: Oct 2022
Posts: 4
PatrickOfLondon is on a distinguished road
Default Run Word VBA macro whan a Word document is activated or re-activated...?

This was really useful, thank you.

I would like to know if there is a similar method for running a macro when a Document is activated or re-activated (rather than when the Word Application window itself is activated). Is there any way of doing that?

What I'm hoping for is something that works similarly to
Private Sub Worksheet_Activate()
for a sheet in an Excel workbook, so that the macro fires when a Word document is activated or re-activated while the Word Application remains running.

With thanks in anticipation...
Reply With Quote