Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-23-2017, 09:26 PM
gattaca714 gattaca714 is offline Find word, Insert Paragraph and bookmark Windows 7 64bit Find word, Insert Paragraph and bookmark Office 2010 32bit
Novice
Find word, Insert Paragraph and bookmark
 
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
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Bookmark, move to bookmark, execute code, repeat raymm3852 Word VBA 10 04-15-2016 06:21 PM
Find word, Insert Paragraph and bookmark Is there anyway I can insert an easy bookmark in word? BayhDole Word 2 07-21-2015 08:43 PM
Find last word in paragraph and delete it Dave T Word VBA 3 05-21-2015 12:40 AM
Find word, Insert Paragraph and bookmark Delete bookmark and paragraph which is blank dsjk9190 Word VBA 2 01-22-2015 01:15 AM
Find word, Insert Paragraph and bookmark [Word 2007] How to hyperlink directly another word file chapter/paragraph/bookmark? LeeFX Word 4 05-05-2011 05:53 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft