Hello All,

I want to know that when the DocumentBeforeSave event is called in Word then
is it possible to know from where the event has been fired. Is it Save, Save
As, Save As Web Page, Auto Save, etc.

I want to track from which of these functions i have recieved the call.

Thanks for help.
GS

Re: To check the call of Save event on DocumentBeforeSave event by Word

Word
Thu Jul 21 19:39:34 CDT 2005

G'day Praful <Praful@discussions.microsoft.com>,

The best way is to intercept each call and set a parm or global
variable.

Eg

Sub FileSave()
DoMySave "FileSave"
End Sub

Sub FileSaveAs()
DoMySave "FileSaveAs"
End Sub


etc

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Praful reckoned:

>Hello All,
>
>I want to know that when the DocumentBeforeSave event is called in Word then
>is it possible to know from where the event has been fired. Is it Save, Save
>As, Save As Web Page, Auto Save, etc.
>
>I want to track from which of these functions i have recieved the call.
>
>Thanks for help.
>GS


Re: To check the call of Save event on DocumentBeforeSave event by Praful

Praful
Fri Jul 22 02:42:01 CDT 2005

Hi,

Thanks for your reply. But I have already this idea in my mind but was not
willing to implement the same coz it will increase the size of code only.

I want to directly check the same under DocumentBeforeSave as this event is
called when we press Save, Save As, Save As web page, Auto save, Exit, close
the document, close the application. So i have to then interrupt all the
events to get the idea from where i have got a call. i just want to interrupt
the Auto Save call. which means that if the DocumentBeforeSave event is
called from autoSave event of Word then i should perform some predefined
action else not.

I hope i am clear about my question.

GS

"Word Heretic" wrote:

> G'day Praful <Praful@discussions.microsoft.com>,
>
> The best way is to intercept each call and set a parm or global
> variable.
>
> Eg
>
> Sub FileSave()
> DoMySave "FileSave"
> End Sub
>
> Sub FileSaveAs()
> DoMySave "FileSaveAs"
> End Sub
>
>
> etc
>
> Steve Hudson - Word Heretic
>
> steve from wordheretic.com (Email replies require payment)
> Without prejudice
>
>
> Praful reckoned:
>
> >Hello All,
> >
> >I want to know that when the DocumentBeforeSave event is called in Word then
> >is it possible to know from where the event has been fired. Is it Save, Save
> >As, Save As Web Page, Auto Save, etc.
> >
> >I want to track from which of these functions i have recieved the call.
> >
> >Thanks for help.
> >GS
>
>