Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2023, 06:04 AM
gmayor's Avatar
gmayor gmayor is offline Is a new document macro added to normal dot Windows 10 Is a new document macro added to normal dot Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
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 ofgmayor has much to be proud of
Default

By default, macros are stored in the normal template. You may however store them in a document, the document's template or an open global template. If you delete a macro, it is only deleted from wherever you created it.
__________________
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
  #2  
Old 09-06-2023, 07:31 AM
John9210 John9210 is offline Is a new document macro added to normal dot Windows 7 64bit Is a new document macro added to normal dot Office 2007
Advanced Beginner
Is a new document macro added to normal dot
 
Join Date: Feb 2015
Posts: 38
John9210 is on a distinguished road
Default

So, if I create a macro in a document that's based on normal.dot template, it is stored in the document but not in the attached template? Is that correct?
Reply With Quote
  #3  
Old 09-06-2023, 08:47 AM
gmayor's Avatar
gmayor gmayor is offline Is a new document macro added to normal dot Windows 10 Is a new document macro added to normal dot Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
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 ofgmayor has much to be proud of
Default

Unless you specifically create the macro in the document (and save that document as macro enabled), it will be created in the normal template. If you create it in the document, it will not be in the normal template.
__________________
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
  #4  
Old 09-06-2023, 09:54 AM
John9210 John9210 is offline Is a new document macro added to normal dot Windows 7 64bit Is a new document macro added to normal dot Office 2007
Advanced Beginner
Is a new document macro added to normal dot
 
Join Date: Feb 2015
Posts: 38
John9210 is on a distinguished road
Default

Most of my documents are created with the Normal dot template. Since that's the case should I create and edit macros in Normal dot and not the document? In other words in the attached template?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force excel to add a new reference to the newly added rows without macro gjergj_06 Excel 2 08-04-2021 07:53 AM
Extra lines added to PDF Document when Doc file is exported to PDF SriHarsha Word 1 11-07-2017 06:48 AM
Populate Drop-Down Content Control from CustomXMLPart added to the Document KhmerBoi1 Word VBA 0 05-11-2016 01:10 PM
Word counting macro for newly added portion? New Daddy Word VBA 24 09-30-2013 07:30 PM
Is a new document macro added to normal dot How to do an automation for copy paste, added new row (macro) jpol Excel Programming 1 03-01-2013 05:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:06 AM.


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