Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2015, 02:12 AM
Lonesy Lonesy is offline Macro to create a title in the Header when a certain text style is used (such as Heading 1) Windows 7 64bit Macro to create a title in the Header when a certain text style is used (such as Heading 1) Office 2010 64bit
Novice
Macro to create a title in the Header when a certain text style is used (such as Heading 1)
 
Join Date: Jun 2015
Posts: 1
Lonesy is on a distinguished road
Default Macro to create a title in the Header when a certain text style is used (such as Heading 1)

I am creating a word document and would like a title to appear in the header of each page. I would like this title to change according to the headings that are applied within the main part of the page. I wanted the title to be linked to the format/style of the Heading 1 in my style list but I am having trouble making it work. Has anyone done this before and can they help???
Reply With Quote
  #2  
Old 06-03-2015, 03:57 AM
gmaxey gmaxey is offline Macro to create a title in the Header when a certain text style is used (such as Heading 1) Windows 7 32bit Macro to create a title in the Header when a certain text style is used (such as Heading 1) Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Have you tried a StyleRef field {StyleRef "Heading 1"}
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to create a title in the Header when a certain text style is used (such as Heading 1) Tab character causes style change to Heading 4 after macro Jennifer Murphy Word VBA 2 12-14-2015 02:31 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 to create a title in the Header when a certain text style is used (such as Heading 1) Create and save custom heading style ubns Word 3 08-01-2012 09:42 PM
How to create macro to paste text after style? Srivas Word 0 03-16-2010 05:28 AM

Other Forums: Access Forums

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