Re: Catching document save event
From: Chad DeMeyer (cjdemeye)
Date: 08/18/04
- Next message: Amit Basu.: "Drop Down form field cannot list more than 25 items"
- Previous message: Amit Basu: "Word problem in running a Word Form"
- In reply to: Mike: "Catching document save event"
- Next in thread: Mike: "Re: Catching document save event"
- Reply: Mike: "Re: Catching document save event"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Aug 2004 11:28:58 -0700
Mike,
This is not something you can trap by hooking an event, but what you can do
is override Word's built in save functions by giving procedures in your
template the same name as the built-in Word commands. Try this:
Go to Tools>Macro>Macros. In the 'Macros in' dropdown, select 'Word
commands'. From the list, select 'FileSave'. Now click the 'Macros in'
dropdown again, and select your template. Now click create. A macro is
created in your template that replaces the built-in command. When you use
this method, the default code is supplied as a starting point, and you can
now modify it rather than starting from scratch.
At a minimum, you will want to have FileSave and FileSaveAs macros in your
template. You may want to also look at some of the other commands such as
FileSaveHTML, etc.
Regards,
Chad
"Mike" <Mike@discussions.microsoft.com> wrote in message
news:A999A412-7092-42F4-84C2-FC626DCBF091@microsoft.com...
> Hi! I am developing a .dot to be used by all people in our company to
compose
> documents. I need to catch document Save event. How do I do it? What
object
> does it belong to ? I can not seem to find this info anywhere.
>
> Please let me know if you came across this problem.
>
> Many Thanks in Advance,
>
> --Mike Z.....
- Next message: Amit Basu.: "Drop Down form field cannot list more than 25 items"
- Previous message: Amit Basu: "Word problem in running a Word Form"
- In reply to: Mike: "Catching document save event"
- Next in thread: Mike: "Re: Catching document save event"
- Reply: Mike: "Re: Catching document save event"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|