Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
slymn - 26 Oct 2006 22:26 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.