Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2021, 06:16 AM
ITSteve ITSteve is offline Macro that inserts header text fails when saved as .dotm Windows 10 Macro that inserts header text fails when saved as .dotm Office 2016
Novice
Macro that inserts header text fails when saved as .dotm
 
Join Date: Apr 2021
Posts: 2
ITSteve is on a distinguished road
Default

Changing ThisDocument to ActiveDocument solved the issue.



This code is a combination of several code examples I hacked away at, so I am sure there are much more elegant ways to write this!

Thanks so much for the help. God bless you.
Reply With Quote
Reply

Tags
dotm, headers, macro in word



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro that inserts header text fails when saved as .dotm Quick Access Toolbar saved in Normal.dotm? gogreen Word 2 10-08-2015 11:47 AM
Macro to add title in header is missing text once macro is run shawnee24 Excel Programming 1 05-27-2015 11:50 PM
Macro to add title in header is missing text once macro is run shawnee24 Word VBA 3 05-27-2015 12:35 PM
Macro that inserts header text fails when saved as .dotm macro not saved in normal.dotm silveredge8181 Word 8 06-09-2014 07:58 PM
Macro that inserts header text fails when saved as .dotm Word fails to save backup of previous version of saved document musawwir Word 1 11-05-2012 05:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:14 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