Here’s a typical corporate document header with the doc title, author, status and publish date automatically inserted from document properties. They are normally used to show document info (name, author etc) within the document itself. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. The same document property can be inserted in many places around the document. 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) In Word 2013 and Word 2010 you can see them on the right-side of the Info screen. Each Office document (Word, Excel and PowerPoint) has a series of hidden document properties that can be shown within a document. This example prints each open document after setting the left and right margins to 0.5 inch. Change the document property and the document changes. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |