To check the call of Save event on DocumentBeforeSave event

P

Praful

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
 
W

Word Heretic

G'day Praful <[email protected]>,

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:
 
P

Praful

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top