Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2021, 03:01 PM
macropod's Avatar
macropod macropod 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
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


Your use of 'ThisDocument' points the macro to them template itself, not to any document you might open. Your use of Selection also invites errors.

For more efficient code to update document headers & footers, see: https://www.msofficeforums.com/62942-post2.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
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 09:19 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