Word 2007 vba saveas file format




















I have the same question 0. Report abuse. Details required :. Cancel Submit. To save as. How satisfied are you with this reply? Thanks for your feedback, it helps us improve the site. 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 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. A password string for saving changes to the document.

See Remarks below. True to have Microsoft Word suggest read-only status whenever the document is opened. True to save TrueType fonts with the document. Learn more. SaveAs word document from word VB. Asked 10 years, 1 month ago. Active 9 years, 3 months ago. Viewed 6k times. Dim WordApp As Microsoft. Document ' How to save the document in format? Improve this question. Vpp Man. Vpp Man Vpp Man 2, 7 7 gold badges 37 37 silver badges 65 65 bronze badges.

I think you need to explicitly set the document type: it's not enough to just use the doc extension. Can you please tell me how to set it? Don't have access to word right now.

Have you tried recording a macro and looking at the generated code? No i didn't. I have never used macro before. So don't know how to perform that. From further searching in google, I found that the second parameter for SaveAs could be the solution. But I couldn't find the wdSaveFormat constants anywhere. Reference: blogs. Then press F2 to open the object browser. You can search for wdSaveFormat and find the value you need.



0コメント

  • 1000 / 1000