

Documents.Open FileName:="C:\Files\Doc.doc", ReadOnly:=True


This example opens Doc.doc as a read-only document. PageSetup.RightMargin = InchesToPoints(0.5) PageSetup.LeftMargin = InchesToPoints(0.5) This example prints each open document after setting the left and right margins to 0.5 inch. If docLoop.Saved = False Then docLoop.Save

This example saves open documents that have changed since they were last saved. This example creates a new document based on the Normal template and then displays the Save As dialog box. Instead, use the Document property of the ProtectedViewWindow object to access a document that is displayed in a Protected View window. A document displayed in a Protected View window is not a member of the Documents collection.
