Reply
 
Thread Tools Display Modes
  #1   Report Post  
jbc
 
Posts: n/a
Default Find & Replace Bookmarks

Hello,

I'm looking to find & replace bookmarks throughout a document. Is there a
code for bookmarks?

I want to locate all bookmarks and replace with *B*.

Thanks.

  #2   Report Post  
Greg Maxey
 
Posts: n/a
Default

jbc,

Not sure that I follow your intent. I don't think that you can "Find"
bookmark and "Replace" with B, however if you want to replace any bookmarked
text with the letter "B" and delete the bookmark, then the following macro
may do:

Sub ScratchMarcro()
Dim oBM As Bookmark
For Each oBM In ActiveDocument.Bookmarks
oBM.Select
oBM.Delete
Selection.Text = "B"
Next
End Sub

--
Greg Maxey/Word MVP
A Peer in Peer to Peer Support

jbc wrote:
Hello,

I'm looking to find & replace bookmarks throughout a document. Is
there a code for bookmarks?

I want to locate all bookmarks and replace with *B*.

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 Search and Replace Yandros Microsoft Word Help 6 February 7th 13 07:47 PM
Find Replace in Footers Gladys Microsoft Word Help 2 December 22nd 04 01:25 PM
Find and replace Word Find and replace Microsoft Word Help 1 December 18th 04 10:09 PM
Find Replace bold formatting with delimiter Steve Microsoft Word Help 7 December 7th 04 03:41 PM
Find & Replace with "]" Chuck Humphrey Microsoft Word Help 4 November 30th 04 08:33 AM


All times are GMT +1. The time now is 08:06 AM.

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

About Us

"It's about Microsoft Word"