Re: Deleted macros but still getting warning by Mark
Mark
Tue Aug 12 22:44:40 CDT 2003
It is strange. Someone may step in with the answer but
I don't know it. If you're pressed for time, I'd say the
best thing to do right now is paste the content into a
fresh document and resave. (And if THAT doc gives the
macro warning, well, let's cross that bridge when it
hatches....)
--
Mark Tangard <Mark@Tangard.com>, Microsoft Word MVP
Please reply ONLY to the newsgroup, not by private mail.
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters
TM wrote:
>
> Hi Mark
>
> Thanks for getting back so quickly.
> Unfortuately I had already deleted the module as well. The
> only object I can see from the explorer is 'ThisDocument'
> under 'Microsoft Word Objects'
>
> I can see the macro module under normal.dot.
>
> Very strange...
>
> >-----Original Message-----
> >TM,
> >
> >It's not enough to delete the macros. (I assume you're
> doing
> >that from the Tools-> Macros-> Macro dialog.) To get rid
> of
> >the warning you need to remove the module that the macros
> once
> >inhabited.
> >
> >Open the template directly, press ALT+F11 to get to the
> Visual
> >Basic editor, and find and expand your template in the
> Project
> >Explorer at the upper left (CTRL+R). Then, right-click
> the
> >module (probably named Module1 if you didn't name it
> yourself
> >or NewMacros if you created the macros by recording
> them), and
> >and from the pop-up menu click Remove
> Your_Module_Name_Here.
> >Answer No when it asks if you want to export it first.
> Close
> >the editor and save the template.
> >
> >--
> >Mark Tangard <Mark@Tangard.com>, Microsoft Word MVP
> >Please reply ONLY to the newsgroup, not by private mail.
> >Note well: MVPs do not work for Microsoft.
> >"Life is nothing if you're not obsessed." --John Waters
> >
> >
> >
> >
> >
> >TM wrote:
> >>
> >> I posted the question below a couple of weeks ago.
> >>
> >> =======================
> >> I created some macros in a Word
> template 'MyTemplate.dot'.
> >> I have then moved all of those macros to my 'normal.dot'
> >> template.
> >> No macro appears for 'MyTemplate.dot' in the list when I
> >> select Tools...Macro...Macros (or Alt F8).
> >> Also, if I look at the project in the VB editor there is
> >> no 'Modules' folder under TemplateProject 'MyTemplate'.
> >> However when I close and re-open 'MyTemplate.dot' I
> still
> >> get presented with the warning dialog stating that
> >> "The document you are opening contains macros or
> >> customizations".
> >> How can I get Word to recognise that all of the macros
> >> have been renoved?
> >>
> >> Thanks in advance
> >> =======================
> >>
> >> I got a direct reply from Doug (thanks, Doug!) which
> >> stated the following:
> >>
> >> =======================
> >> In the normal course of things, you would should not be
> >> opening the template,
> >> rather, select New from the File menu and then select
> the
> >> template as the
> >> basis of the document that you want to create. You
> would
> >> not then get the
> >> warning.
> >> =======================
> >>
> >> However, this is not the case. Even when I open a new
> >> document based on the template I get the warning message
> >> about macros. This is in spite of the fact that there
> are
> >> no macros (that I can identify anyway) in the document.
> >>
> >> Can anyone shed any light?
> >.
> >