Word

Open Document in Full-Screen Mode

Ease of Use

Easy

Version tested with

2000 

Submitted by:

Anne Troy

Description:

Opens the document in full-screen mode. 

Discussion:

When you want a specific document to open in full-screen mode, you put this macro in the document_open event, and voila! 

Code:

instructions for use

			

Private Sub Document_Open() ActiveWindow.View.FullScreen = Not ActiveWindow.View.FullScreen End Sub

How to use:

  1. Copy the code above.
  2. Open the document.
  3. Hit Alt+F11 to open the Visual Basic Editor (VBE).
  4. On the left, double-click the document you opened.
  5. Underneath it, double-click "ThisDocument".
  6. Paste the code into the window that appears at right.
  7. Hit the Save diskette on the toolbar and close the VBE.
 

Test the code:

  1. Save and close the document.
  2. Open it again; it should open full-screen.
 

Sample File:

fullscreen.zip 4.04KB 

Approved by mdmackillop


This entry has been viewed 91 times.

Please read our Legal Information and Privacy Policy
Copyright @2004 - 2020 VBA Express