Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word Search and Replace | Microsoft Word Help | |||
Find Replace in Footers | Microsoft Word Help | |||
Find and replace | Microsoft Word Help | |||
Find Replace bold formatting with delimiter | Microsoft Word Help | |||
Find & Replace with "]" | Microsoft Word Help |