Word has all the menu items predefined as macros. Ex.
FileSave
FileSaveAs
FileExit
How do I call these functions? I recorded a macro and it says application.FileSaveAs but that didn't work. Any suggestions how to call these predefined macros?
Printable View
Word has all the menu items predefined as macros. Ex.
FileSave
FileSaveAs
FileExit
How do I call these functions? I recorded a macro and it says application.FileSaveAs but that didn't work. Any suggestions how to call these predefined macros?
try thisworkbook.saveas
or workbooks("the nameofyour work book").saveas
depending where you have your code
the code WestConn has given you is for Excel. I believe you want to do it in MS - Word. If yes... then this should help...Quote:
Originally Posted by fallnwrld
vb Code:
Application.Run MacroName:="FileSaveAs"
Hope this helps...