View Single Post
 
Old 03-17-2019, 10:42 AM
matapagi2019 matapagi2019 is offline Windows XP Office 2007
Novice
 
Join Date: Mar 2019
Posts: 12
matapagi2019 is on a distinguished road
Default Full screen view to specific document

The code below works fine. This can display a document (MyAgenda.docm) in full screen view.
The problem is : When I open a new document or several, it will open also in full screen.
How do I display full screen view mode on only one document (i.e.: MyAgenda.docm), and display normal screen view mode in another document?

Code:
Sub Macro1()
Dim ObjWord As Object
Dim ObjDoc As Object
 Set ObjWord = Word.Application
 Set ObjDoc = MsWord.Documents.Open("D:\MyAgenda.docm")
    ObjWord.Visible = True
    ObjDoc.ActiveWindow.View.FullScreen = True
End Sub
Reply With Quote