Use the SaveAs method to save a document with a new name. To use this code example, run it from the ThisDocument or ThisAddIn class in your project. Use the document name as an argument to the Documents collection. If you are not sure whether the document you want to save is the active document, you can refer to it by its name. Me.Save()Ĭall the Save method for the active document. To use this code example, run it from the ThisDocument class in your project. Save a document without changing the name To save the document associated with a document-level customizationĬall the Save method of the Document class. For more information, see Features available by Office application and project type. You can save a document without changing the name of the document, or you can save a document with a new name.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. There are several ways to save Microsoft Office Word documents.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |