#1   Report Post  
Posted to microsoft.public.word.docmanagement
sisdog sisdog is offline
external usenet poster
 
Posts: 5
Default Add Style to Bookmarks

Hi all. I'm using Word 2007 and I would like to change the style of
all the bookmarks in my document. Is there a standard style that I
can tap into to change the look-n-feel of all my bookmarks at once?

Thanks
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Add Style to Bookmarks

If you want is to make the Bookmarks visible (i.e. the cross-references to a
bookmark). Turn on the option Field Shading to Always (this is under the Word
Options, View), all the cross references and any other fields in your
document will now have a grey shading.
If you want the Bookmark itself to be visible, turn on the Bookmarks option
in the Show section, now the Bookmark square brackets will be visible.
The above is described as for 2003 as I don't have 2007, hopefully though it
will point you to the right place.
Now if you you want to apply a style, at least you can now see them.
I don't think there is a Find/Replace option to do what you want. Maybe a
macro guru can add a programming solution.
Hope this helps
DeanH

"sisdog" wrote:

Hi all. I'm using Word 2007 and I would like to change the style of
all the bookmarks in my document. Is there a standard style that I
can tap into to change the look-n-feel of all my bookmarks at once?

Thanks

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Add Style to Bookmarks

If you are saying that you want to format text enclosed in bookmarks,
something like this should work:

Sub TestFormatBm()

Dim bm As Bookmark
ActiveDocument.Bookmarks.ShowHidden = False
For Each bm In ActiveDocument.Bookmarks
bm.Range.Style = "char style name here"
Next bm

End Sub

The code applies a character style to the text of each bookmark found in the
document. Of course, "char style name here" should be replaced with a
relevant, existing character style name.

If you want to format text enclosed in hidden bookmarks as well, change
..ShowHidden to True.

For assistance with the macro, see
http://www.gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP


"DeanH" wrote in message
...
If you want is to make the Bookmarks visible (i.e. the cross-references to
a
bookmark). Turn on the option Field Shading to Always (this is under the
Word
Options, View), all the cross references and any other fields in your
document will now have a grey shading.
If you want the Bookmark itself to be visible, turn on the Bookmarks
option
in the Show section, now the Bookmark square brackets will be visible.
The above is described as for 2003 as I don't have 2007, hopefully though
it
will point you to the right place.
Now if you you want to apply a style, at least you can now see them.
I don't think there is a Find/Replace option to do what you want. Maybe a
macro guru can add a programming solution.
Hope this helps
DeanH

"sisdog" wrote:

Hi all. I'm using Word 2007 and I would like to change the style of
all the bookmarks in my document. Is there a standard style that I
can tap into to change the look-n-feel of all my bookmarks at once?

Thanks






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007 bookmarks - How to display bookmarks on page? rgille Microsoft Word Help 2 April 27th 23 02:55 AM
change automatically the style/format of my references on bookmarks. AG[_2_] New Users 7 November 23rd 07 09:23 AM
Style applied to 1 graf creates 2 instances of style. section prob asym Microsoft Word Help 5 January 12th 07 09:36 PM
Wood 2002 remove character style and revert to paragraph style Nimbus Page Layout 3 March 6th 06 09:36 AM
character style Word 2003 preserving size underlying style Brian_M Microsoft Word Help 2 December 19th 05 02:21 AM


All times are GMT +1. The time now is 12:15 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"