Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How do I get a Macro to run immediately after a save as?
I have created a Macro for a filename and path in the footer of my Word
template, but now, I would like to get it to run automatically after "save as" is used, so that the filename and path regenerates to pick up the newest file name and location. Thanks, Nic |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How do I get a Macro to run immediately after a save as?
Hi ?B?bmlj?=,
I have created a Macro for a filename and path in the footer of my Word template, but now, I would like to get it to run automatically after "save as" is used, so that the filename and path regenerates to pick up the newest file name and location. Create a macro named FileSaveAs so that it will execute when the user picks this command. Display the dialog box in the macro; when the user dismisses it, call your code to write the file name and path, as you do now. Something like this: Sub FileSaveAs() Dialogs(wdDialogFileSaveAs).Show MySubNameHere End Sub Sub MySubNameHere() 'your code to write the filename End Sub Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to Save Doc | Formatting Long Documents | |||
How do I use macro/ other feature of word to save a new copy word | New Users | |||
How do use macro or some other feature to save a new copy of word. | Microsoft Word Help | |||
macro to save rtf file as txt | Microsoft Word Help | |||
Save As is not working due to macro security settings | Microsoft Word Help |