View Single Post
 
Old 10-15-2022, 09:42 AM
daneyuleb daneyuleb is offline Windows 10 Office 2016
Novice
 
Join Date: Dec 2021
Posts: 3
daneyuleb is on a distinguished road
Default

If I'm understanding you correctly, it seems it would work if you use the "DocumentChange" procedure (in that second step) rather than WindowActivate. So the sub (in the class module) looks like this:



Private Sub App_DocumentChange()
MsgBox "changed!"
End Sub

Everything else remains the same. This fires the sub every time you switch from one doc to another without leaving Word.
Reply With Quote