Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2023, 05:32 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: 31
John9210 is on a distinguished road
Default Is a new document macro added to normal dot


Word 365: if you create a new macro in a word document, is it automatically added to Normal dot? If you delete a macro in a word document, is it deleted from Normal dot?
Reply With Quote
  #2  
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,106
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

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
  #3  
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: 31
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
  #4  
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,106
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

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
  #5  
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: 31
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
  #6  
Old 09-06-2023, 06:42 PM
Charles Kenyon Charles Kenyon is offline Is a new document macro added to normal dot Windows 11 Is a new document macro added to normal dot Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

It is fairly rare that you want to save macros in a document. You would do that if they are only for use in that document and the user does not have a problem with running macros.


See Organizing your macros by Beth Melton, Word MVP.
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 04:14 AM.


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