M
mansky99
Hi,
I have split the macros I had originally stored in Normal.dot up into 6
different templates and have thereby reduced the size of Normal.dot from
600+kB to 64kB (Cleaning up a load of dead code and inefficient code in the
process).
My question now is should I run a VB script to go thru all the Word
documents on the system and open and then save them as web pages, or delete
the last section in each document, in an attempt to "clean-up" potential
corrupted documents now that I've changed dramatically the code in Normal.dot
-and therefore the pointers to the various macros I call ?
If I understand the advice on the Word MVP website, pointers to the macros
used (if any) in a given document are stored in the last section of each
document. If Normal.dot has been completely re-organized, should the
programmer then run a "clean-up" script on the Word documents on their system
in order to get the pointers to the code used updated in a reliable manner,
or will Word update the pointers in the last section automatically, and more
importnantly to me, reliably?
If I am completely off-base with regards the pointers in Word and how Word
stores, in a given document, the info about which templates and macros to
call in displaying that document, please let me know. I really want to
understand what Word does in linking to and executing the macros and
templates used in a given document. Any book references, or webiste links on
the subject would be greatly appreciated.
Thanks!
Ed
I have split the macros I had originally stored in Normal.dot up into 6
different templates and have thereby reduced the size of Normal.dot from
600+kB to 64kB (Cleaning up a load of dead code and inefficient code in the
process).
My question now is should I run a VB script to go thru all the Word
documents on the system and open and then save them as web pages, or delete
the last section in each document, in an attempt to "clean-up" potential
corrupted documents now that I've changed dramatically the code in Normal.dot
-and therefore the pointers to the various macros I call ?
If I understand the advice on the Word MVP website, pointers to the macros
used (if any) in a given document are stored in the last section of each
document. If Normal.dot has been completely re-organized, should the
programmer then run a "clean-up" script on the Word documents on their system
in order to get the pointers to the code used updated in a reliable manner,
or will Word update the pointers in the last section automatically, and more
importnantly to me, reliably?
If I am completely off-base with regards the pointers in Word and how Word
stores, in a given document, the info about which templates and macros to
call in displaying that document, please let me know. I really want to
understand what Word does in linking to and executing the macros and
templates used in a given document. Any book references, or webiste links on
the subject would be greatly appreciated.
Thanks!
Ed