I need a mainline VBA module to create and add another VBA Module.

ie I need a module call updateDoc to create a Document_Open() module
in the ThisDocument module of the document and add the line

ActiveDocument.fields(1).update

Following is a description of my overall problem ...

I need the FILENAME field to update automatically when a Word
document is opened (not just when the document is printed)

Microsoft declare that they have stopped this happening to improve
the speed of opening a document. I have also experimented with
Autotext fields with no luck.

MS also tell me that the workaround is to write a VBA module
(something like activedocument.fields(1).update) which updates the
field. This I understand.

Overall, I have written a procedure (called UpdateDoc) to help an
operator update over a 1000 docs. This procedure embeds the FILENAME
field and it would now seem that I also need to add a Document_Open
() procedure to the ThisDocument module. Again I have no problem
with this.

BUT

How do I append the Document_Open() procedure AS A PART OF THE
OVERALL UpdateDoc PROCEDURE?

Thanks for your interest

Neil






SPONSORED LINKS
Microsoft access database Database development software Database management software
Database software Inventory database software Membership database software


YAHOO! GROUPS LINKS




Reply via email to