Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2015, 05:00 PM
Guessed's Avatar
Guessed Guessed is offline Use multiple style sets in the same Word document (depending on which section the style is in) Windows 7 32bit Use multiple style sets in the same Word document (depending on which section the style is in) Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can apply bookmarks to ranges in Word. This is similar to 'named ranges' in Excel. Basically, you just select the range and then add a bookmark.



If you used a standard way of naming the bookmark ranges then you could conceivably create a macro to reassign styles to a relevant name. There are multiple ways to write a macro like this but I would probably start with a concept along the following lines...
Code:
Dim abmk as Bookmark
For each abmk in ActiveDocument.Bookmarks
  If Left(abmk.Name,4) = "Meta" then
    'Run a series of find/replace for changeable stylenames on abmk.Range
    'where you replace 'stylename' with 'stylename & mid(abmk.Name,4)'
    ' of course this supposes that those styles already exist in document
  end if
Next abmk
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 03-09-2015, 06:47 PM
Ricyteach Ricyteach is offline Use multiple style sets in the same Word document (depending on which section the style is in) Windows 7 64bit Use multiple style sets in the same Word document (depending on which section the style is in) Office 2013
Novice
Use multiple style sets in the same Word document (depending on which section the style is in)
 
Join Date: Feb 2015
Location: Dayton, OH
Posts: 4
Ricyteach is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
You can apply bookmarks to ranges in Word. This is similar to 'named ranges' in Excel.

Ok: that was an INCREDIBLY HELPFUL comparison. Thanks!

In your opinion, am I better off using bookmarks, or building blocks/quickparts...? I have very little experience using any of these.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Run-time error 91 - VBA for inserting and formatting text depending on style mtrborges Word VBA 2 02-08-2015 11:35 PM
Use multiple style sets in the same Word document (depending on which section the style is in) Word 2010 - Style Sets not fully loading / loading properly emilypage Word 3 11-09-2012 01:11 AM
Word 2010 Style Sets Sampler Charles Kenyon Word 0 05-17-2012 02:00 AM
How to add to list of Style Sets oscarsonthepond Word 3 09-20-2011 03:15 PM

Other Forums: Access Forums

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