Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Park City, Utah
    Posts
    189
    Thanks
    1
    Thanked 0 Times in 0 Posts

    'Clean' Word Documents (2000/2003)

    I have documents created from templates that contain macro code. How do I save these newly-created documents WITHOUT the macros in them?

    Thanks!

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 'Clean' Word Documents (2000/2003)

    Save them as RTF files? Beware these can be smaller, or Very Much Larger, than the corresponding DOC files. But they will be macro, and virus, free...

    (Some Word Brain will tell you the more complicated way, by removing the macros...!)
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: 'Clean' Word Documents (2000/2003)

    The method mentioned by JohnGray involves the least need to understand macros, but another way would be to open Tools>Macros>Macros, change the drop-down box to show only the document's macros, and delete all of the ones you find. I guess if one forgets to change the drop-down, this could lead to a few support requests. Hmmm... This could perhaps be automated with a macro. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: 'Clean' Word Documents (2000/2003)

    Wait a second... if you create a document (DOC) from a template (DOT) using File>New, the macros remain in the template and are not copied into the document. If another person opening the document has the template, the two will be linked up. However, if the other person does not have the template, the document will be associated with their Normal.dot, and the custom macros will not be there. To guarantee that there is no association, change the attached template (Tools>Templates and add-ins) before sending the document.

    If your new document is created by opening the template (DOT) and choosing Save As to a document, then the above is not true. You have to clean up the document the hard way. In the old days, this wasn't a problem; you could only save a template as another template. But... for some reason... that has changed.

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: 'Clean' Word Documents (2000/2003)

    How come the documents contain macros? If you have a template that contains macros, and create a new document based on this template, the macros will [n]not[/b] be present in the document. They will be available to the document since it contains a reference back to the template it was created from. The document will only contain macros if you have code that explicitly creates or copies them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •