Jump to content
Sign in to follow this  
alc

Word: access to DocumentBeforeSave event

Recommended Posts

alc

Hi.

I'm running a script that monitors Microsoft Office Word. I need to write some Custom Properties to the document being edited when it is saved. No keyb or mouse hooks, because the document can be saved even using VBA. The only way left is to use the Word event DocumentBeforeSave. How can I register and write code for the event?

I'm still using 3.3.6.1, I would prefer a solution for this AutoIt, but if it not posible and the new version can, you are welcome anyway.

Thanks in advance.

 

Share this post


Link to post
Share on other sites
water

In my Excel >example scripts you see how to do it for Excel. Should be quite easy to translate it to Word.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
alc

Hi, Water

Thank you for your fast reply  and sorry for my late one, Sunday is perhaps my busiest day of the week

Shame on me, I can't explain myself why I didn't see ObjEvent() in the Help

I haven't tried yet, but I'm sure you've saved yet another life. I´ll confirm it in a couple of days I guess

Best wishes

alc

Share this post


Link to post
Share on other sites
water

If you still have problems just post and I will do my very best.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×