View Single Post
 
Old 03-09-2015, 05:00 PM
Guessed's Avatar
Guessed Guessed is offline Windows 7 32bit 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