Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-12-2024, 08:54 AM
Italophile Italophile is offline Macro in template documents wont run in other documents Windows 11 Macro in template documents wont run in other documents Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Templates are .dotm, documents are .docm.

From your screenshot the code appears to be in your Normal.dotm, which is a template that only you have access to.

Your code uses
Code:
ThisDocument
which refers to the document or template that contains the code. To use the code with the current document use
Code:
ActiveDocument
instead.
Reply With Quote
 

Tags
run a macro, template form

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
referenceing/finding word from one documents into another documents and indicating their location rok123 Word VBA 1 02-07-2016 04:50 PM
Microsoft Word 2013 Documents open as full version documents on two computers sporadically Jaydenc-Fortress Word 2 08-07-2014 12:34 AM
Office 2010 Can't Open Or Save Documents in My Documents Folder trippb Office 1 07-12-2013 07:29 AM
Macro in template documents wont run in other documents update template in all documents vangxbg Word VBA 1 02-25-2013 04:04 AM
Macro in template documents wont run in other documents Attach a template to 1000+ documents ohmzoned Word 1 02-04-2012 12:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:07 PM.


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