Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete VBA after use?

Status
Not open for further replies.

pfrancis

Programmer
Mar 18, 2004
19
US
I have a word document that, when openned, brings up the insert file dialog box and then does some formatting (Find and Replace). After that it saves as a different file name. However, when you open the newly saved file, it runs the insert file and formating VBA again. Is there a way to remove the VBA from the newly saved file? Thanks for your help.
 
I have a word document that, when openned, ...
Why not make a template (.dot) and put the code in the Document_New event procedure instead of the Document_Open.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Sometimes it pays to think a little harder before you I post. I thought of that right after I read it again. Thank you for reminding me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top