--> (Word) | --> (PDF) | --> (Epub) | --> (Text) |
--> (XML) | --> (OpenOffice) | --> (XPS) | |
When you want a specific document to open in full-screen mode, you put this [gs macro] in the document_open event, and voila!
Code:
Private Sub Document_Open()
ActiveWindow.View.FullScreen = Not ActiveWindow.View.FullScreen
End Sub
- Copy the code above.
- Open the document.
- Hit Alt+F11 to open the Visual Basic Editor (VBE).
- On the left, double-click the document you opened.
- Underneath it, double-click "ThisDocument".
- Paste the code into the window that appears at right.
- Hit the Save diskette on the toolbar and close the VBE.
Test the code:
- Save and close the document.
- Open it again; it should open full-screen.
SOURCE | LINK (vbaexpress.com) | LANGUAGE | ENGLISH |
Word – VBA – Open Document in Full-Screen Mode http://heelpbook.altervista.org/2012/word-vba-open-document-in-full-screen-mode/ via @HeelpBook