Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

To check the call of Save event on DocumentBeforeSave event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Praful - 21 Jul 2005 09:00 GMT
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
Word Heretic - 22 Jul 2005 01:37 GMT
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,
>
[quoted text clipped - 6 lines]
>Thanks for help.
>GS
Praful - 22 Jul 2005 08:42 GMT
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

> G'day Praful <Praful@discussions.microsoft.com>,
>
[quoted text clipped - 30 lines]
> >Thanks for help.
> >GS
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.