View Single Post
 
Old 03-23-2017, 09:26 PM
gattaca714 gattaca714 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Mar 2017
Posts: 2
gattaca714 is on a distinguished road
Default Find word, Insert Paragraph and bookmark

Hello I found this macro and Im trying to modify it to fit my application.

If the word Roll Call exist, select it and insert a paragraph after it, insert a bookmark. Any leads would be appreciate it.

Sub macro2()
Set myRange = ActiveDocument.Content
myRange.Find.Execute FindText:="Roll Call", Forward:=False
If myRange.Find.Found = True Then Selection.TypeParagraph
ActiveDocument.Bookmarks.Add Name:="mark"
End Sub
Reply With Quote