View Single Post
 
Old 01-24-2012, 12:59 PM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

Quote:
Originally Posted by macropod View Post
Hi Jamal,

1. The procedure for adding the code to a particular document, instead of to the Normal template, is exactly the same. However, every reference to 'ActiveDocument' should be changed to 'ThisDocument'.
2 & 3. That is correct.
4. You can store the code in doc or docm files, not in docx files
5. Your comment is contradictory:
Does it work when saving, or does it not? AFAIK, the 'wdApp_DocumentBeforeSave' module, if correctly implemented in a Class Module, should work for both 'Save' and 'Save As' procedures.

As I am travelling, I am not in a position to review this matter more fully right now.
Thank you for the massive effort. I do appreciate it.
Apologies for the mistakes on my previous post and bothering you with more problems.
In short, what I wanted is to stick a code inside a particular document such that all the fields are updated automatically as I: save, save as, open and print.
It would be highly appreciated if your time allows to stick the codes that you have supplied in a particular document (and kindly send it) in the right place (Microsoft word objects, modules, class modules, references) such that I can use it as a master document. I tried to do that but sounds not to work (attached).
I to remind you with this thread when you come back!
Wish you a nice and safe trip. Take care.
Best regards
Jamal
Attached Files
File Type: zip Doc1_06.zip (20.4 KB, 16 views)
Reply With Quote