PDA

View Full Version : "save" or "save as" code



Jessica DT
11-10-2010, 02:11 PM
I am using MS Office 2007 and need help making a code.

I need to create a “SAVE” Command Box Button on an application. When the user clicks the box I need the word doc to respond as if they click the SAVE AS button...

Thanks in advance for any help. - Jessica:think:

fumei
11-10-2010, 03:23 PM
ActiveDocument.SaveAs Filename:=path & filename

You need to supply a valid path and a valid filename.


If the document has not been previously Saved, all attempts to Save become SaveAs by default.