Based on some good advice in a different thread, I saved a Word
document as .RTF in order to remove unwanted macro code.
While this worked, when the document was opened, it had a different set
of styles defined for it than the original document.
I am quite keen to stick with the original set of styles as I use them
heavily, but my current customers are disconcerted by the Macro
security message that is being activated due to the presence of the
macro code.
I should add that the document is based on a template where all the
styles are defined and uses a macro in the creation stages to display a
form for the user to set some document properties.
Thanks in advance.
Jezebel - 26 Oct 2006 23:30 GMT
Saving as RTF is a rather shotgun approach to removing macros.
Switch to VBA, delete all code from the ThisDocument module, and *remove*
all other modules. (Word considers that the document has macros if there are
any VBA modules, even if they are empty.)
> Based on some good advice in a different thread, I saved a Word
> document as .RTF in order to remove unwanted macro code.
[quoted text clipped - 12 lines]
>
> Thanks in advance.
slymn - 27 Oct 2006 03:07 GMT
Thanks, that worked.
> Saving as RTF is a rather shotgun approach to removing macros.
>
[quoted text clipped - 18 lines]
> >
> > Thanks in advance.