Hello, Can someone please provide me a macro I can use for..

If there is a smart tags in the document, to automatically removed them
prior to closing or exiting.

I'd appreciate any help! Thank you!
--
Smile...it is good for you! :)

Re: Delete smart tags automatically by Jay

Jay
Sat Mar 10 20:38:48 CST 2007

On Sat, 10 Mar 2007 15:17:08 -0800, Macro''''er
<Macroer@discussions.microsoft.com> wrote:

>Hello, Can someone please provide me a macro I can use for..
>
>If there is a smart tags in the document, to automatically removed them
>prior to closing or exiting.
>
>I'd appreciate any help! Thank you!

The following is copied directly from the Help topic for the
RemoveSmartTags method:

~~~~~

This example removes all smart tag information from the active
document.

Sub SmartTagRemove()
ActiveDocument.RemoveSmartTags
End Sub

~~~~~

But for what you want, it's probably sufficient to go to Tools >
Options > Save and uncheck the box for "Embed smart tags". They won't
be saved in the file, although if you have smart tags enabled in your
Word program they'll be rebuilt when you reopen the document.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

Re: Delete smart tags automatically by Macroer

Macroer
Sat Mar 10 20:51:15 CST 2007

Thanks for your quick response. How can I incorporate the codes you provided
with the AutoClose macro? We worked with several documents and often times
the editor forgets to remove the smart tags prior to closing so I would like
to run a macro where when they close the document; the macro will
automatically remove smart tags.

Thanks again!

Sub SmartTagRemove()
ActiveDocument.RemoveSmartTags
End Sub

--
Smile...it is good for you! :)


"Jay Freedman" wrote:

> On Sat, 10 Mar 2007 15:17:08 -0800, Macro''''er
> <Macroer@discussions.microsoft.com> wrote:
>
> >Hello, Can someone please provide me a macro I can use for..
> >
> >If there is a smart tags in the document, to automatically removed them
> >prior to closing or exiting.
> >
> >I'd appreciate any help! Thank you!
>
> The following is copied directly from the Help topic for the
> RemoveSmartTags method:
>
> ~~~~~
>
> This example removes all smart tag information from the active
> document.
>
> Sub SmartTagRemove()
> ActiveDocument.RemoveSmartTags
> End Sub
>
> ~~~~~
>
> But for what you want, it's probably sufficient to go to Tools >
> Options > Save and uncheck the box for "Embed smart tags". They won't
> be saved in the file, although if you have smart tags enabled in your
> Word program they'll be rebuilt when you reopen the document.
>
> --
> Regards,
> Jay Freedman
> Microsoft Word MVP FAQ: http://word.mvps.org
> Email cannot be acknowledged; please post all follow-ups to the
> newsgroup so all may benefit.
>

Re: Delete smart tags automatically by Graham

Graham
Sun Mar 11 00:43:20 CST 2007

Rename the macro sub AutoClose()
or add the line
ActiveDocument.RemoveSmartTags
to an existing autoclose macro?
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Macro''''er wrote:
> Thanks for your quick response. How can I incorporate the codes you
> provided with the AutoClose macro? We worked with several documents
> and often times the editor forgets to remove the smart tags prior to
> closing so I would like to run a macro where when they close the
> document; the macro will automatically remove smart tags.
>
> Thanks again!
>
> Sub SmartTagRemove()
> ActiveDocument.RemoveSmartTags
> End Sub
>
>
>> On Sat, 10 Mar 2007 15:17:08 -0800, Macro''''er
>> <Macroer@discussions.microsoft.com> wrote:
>>
>>> Hello, Can someone please provide me a macro I can use for..
>>>
>>> If there is a smart tags in the document, to automatically removed
>>> them prior to closing or exiting.
>>>
>>> I'd appreciate any help! Thank you!
>>
>> The following is copied directly from the Help topic for the
>> RemoveSmartTags method:
>>
>> ~~~~~
>>
>> This example removes all smart tag information from the active
>> document.
>>
>> Sub SmartTagRemove()
>> ActiveDocument.RemoveSmartTags
>> End Sub
>>
>> ~~~~~
>>
>> But for what you want, it's probably sufficient to go to Tools >
>> Options > Save and uncheck the box for "Embed smart tags". They won't
>> be saved in the file, although if you have smart tags enabled in your
>> Word program they'll be rebuilt when you reopen the document.
>>
>> --
>> Regards,
>> Jay Freedman
>> Microsoft Word MVP FAQ: http://word.mvps.org
>> Email cannot be acknowledged; please post all follow-ups to the
>> newsgroup so all may benefit.



Re: Delete smart tags automatically by Macroer

Macroer
Mon Mar 12 13:18:33 CDT 2007

Thanks Graham.

So new at this macro stuff so pardon my "stupid" question. I added the code
below in my template module. Would there be any issue adding this in the
module and not in the objects? I'm not sure what the "Private Sub
Document_Close" as oppose to "Sub Document_Close".

Private Sub Document_Close()

ActiveDocument.RemoveSmartTags

End Sub
--
Smile...it is good for you! :)


"Graham Mayor" wrote:

> Rename the macro sub AutoClose()
> or add the line
> ActiveDocument.RemoveSmartTags
> to an existing autoclose macro?
> http://www.gmayor.com/installing_macro.htm
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
> Macro''''er wrote:
> > Thanks for your quick response. How can I incorporate the codes you
> > provided with the AutoClose macro? We worked with several documents
> > and often times the editor forgets to remove the smart tags prior to
> > closing so I would like to run a macro where when they close the
> > document; the macro will automatically remove smart tags.
> >
> > Thanks again!
> >
> > Sub SmartTagRemove()
> > ActiveDocument.RemoveSmartTags
> > End Sub
> >
> >
> >> On Sat, 10 Mar 2007 15:17:08 -0800, Macro''''er
> >> <Macroer@discussions.microsoft.com> wrote:
> >>
> >>> Hello, Can someone please provide me a macro I can use for..
> >>>
> >>> If there is a smart tags in the document, to automatically removed
> >>> them prior to closing or exiting.
> >>>
> >>> I'd appreciate any help! Thank you!
> >>
> >> The following is copied directly from the Help topic for the
> >> RemoveSmartTags method:
> >>
> >> ~~~~~
> >>
> >> This example removes all smart tag information from the active
> >> document.
> >>
> >> Sub SmartTagRemove()
> >> ActiveDocument.RemoveSmartTags
> >> End Sub
> >>
> >> ~~~~~
> >>
> >> But for what you want, it's probably sufficient to go to Tools >
> >> Options > Save and uncheck the box for "Embed smart tags". They won't
> >> be saved in the file, although if you have smart tags enabled in your
> >> Word program they'll be rebuilt when you reopen the document.
> >>
> >> --
> >> Regards,
> >> Jay Freedman
> >> Microsoft Word MVP FAQ: http://word.mvps.org
> >> Email cannot be acknowledged; please post all follow-ups to the
> >> newsgroup so all may benefit.
>
>
>