Forum Discussion
KlaCat
Sep 16, 2023Copper Contributor
VBA code to bring the active document in front
I have a subroutine that produces and edits six different documents. My current problem is that the documents all stay in the background. But, I want them to be in front of all other windows using o...
KlaCat
Sep 16, 2023Copper Contributor
I could probably just do
ActiveDocument.Activate
but what's the difference between doing that and
ActiveDocument.Visible = True
?
Stefan_Blom
Sep 16, 2023MVP
The Window.Visible property determines if a document window is visible in the user interface or not (see https://learn.microsoft.com/en-us/office/vba/api/word.window.visible). It doesn't have anything to do with activating Word windows.