View Single Post
 
Old 01-26-2012, 03:14 PM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 525
Jamal NUMAN is on a distinguished road
Lightbulb

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.
I'm not sure if you still remember the issue of showing the name of the file and path on the title bar of the MS Access.

i got a code from the forum (with autoexec) which is implemented as the file open (attached), in this case, it writes the name and the path of the file on the title bar

I'm looking for such code that updates all the fields as we: save, save as, open and print.

best

Jamal
Attached Images
File Type: jpg Clip_41.jpg (100.4 KB, 49 views)
Attached Files
File Type: zip m.zip (15.6 KB, 12 views)
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank.
Reply With Quote