Removing unwanted macro code by savinng as .RTF affects the document styles?

S

slymn

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.
 
J

Jezebel

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.)
 
S

slymn

Thanks, that worked.

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top