Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2019, 01:47 AM
Loadofbooks Loadofbooks is offline Add macro to word template and not lose auto text Windows 10 Add macro to word template and not lose auto text Office 2010
Novice
Add macro to word template and not lose auto text
 
Join Date: Oct 2019
Posts: 1
Loadofbooks is on a distinguished road
Default Add macro to word template and not lose auto text

I am trying to add a macro to my template. But every time I do I lose the auto text I have set up. I’ve tried creating a new template and saving over the original.



Any suggestions on how I can do this?
Reply With Quote
  #2  
Old 10-21-2019, 02:02 AM
gmayor's Avatar
gmayor gmayor is offline Add macro to word template and not lose auto text Windows 10 Add macro to word template and not lose auto text Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Open the template for editing. Add the macro code to a new module in the template's VBA project. Save and close the template. It should not affect your autotext entries. However creating a new template and saving it over the original will certainly overwrite any autotext entries stored in that original template.

See also Installing Macros
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to set all auto shapes with no Fill and text box to be deleted prkhan56 Word VBA 0 03-25-2019 07:26 AM
Auto-update field codes in Outlook Template - AutoOpen Macro not working victoriasun Outlook 5 12-22-2015 01:54 AM
Add macro to word template and not lose auto text how do I auto-populate a word template Greenhorn Word 4 09-05-2012 04:16 PM
Add macro to word template and not lose auto text Lose formatting when copying text shadox Excel 1 07-31-2012 08:50 PM
Auto Text does not travel with the template jerem Word 0 05-19-2011 09:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft