Vba word saveas2 file format


















If the document has never been saved, the default name is used for example, Doc1. If a document with the specified file name already exists, the document is overwritten without prompting the user. The format in which the document is saved.

Can be any WdSaveFormat constant. To save a document in another format, specify the appropriate value for the SaveFormat property of the FileConverter object. True to lock the document for comments. The default is False. True to add the document to the list of recently used files on the File menu.

The default is True. True to have Microsoft Word suggest read-only status whenever the document is opened. True to save TrueType fonts with the document. Please rate your experience Yes No.

Any additional feedback? Note Interested in developing solutions that extend the Office experience across multiple platforms? In this article. A string that indicates the name of the file to be saved.

You can include a full path; if you don't, Microsoft Excel saves the file in the current folder. The file format to use when you save the file. For a list of valid choices, see the XlFileFormat enumeration. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used.

A case-sensitive string no more than 15 characters that indicates the protection password to be given to the file. An expression that returns a Document object. FileName Optional Variant. The name for the document. The default is the current folder and file name. If the document has never been saved, the default name is used for example, Doc1.

If a document with the specified file name already exists, the document is overwritten without the user being prompted first. LockComments Optional Variant. True to lock the document for comments. The default is False. Password Optional Variant. A password string for opening the document. See Remarks below. True to add the document to the list of recently used files on the File menu. It makes no difference whether you're using SaveAs or SaveAs2 for this.

Quit End With. Well, my problem was related to the syntax: this didn't work:. SaveAs Hoja1. Close in the next line asked me to save changes to original document something that worked well before. Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.



0コメント

  • 1000 / 1000