Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-21-2018, 09:36 AM
gmaxey gmaxey is offline Start find macro beginning with section 2 Windows 7 32bit Start find macro beginning with section 2 Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

So where is your macro?

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey, http://gregmaxey.com/word_tips.html, 9/21/2018
Dim oRng As Word.Range
  Set oRng = ActiveDocument.Sections(2).Range
  With oRng.Find
    .Text = "Test"
    While .Execute
      oRng.Select
    Wend
  End With
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start find macro beginning with section 2 How to find and replace random empty spaces in beginning of lines? Pauliina Word 4 05-24-2018 10:01 PM
Start find macro beginning with section 2 word macro To insert text at the beginning and at end of paragraph ArieH Word VBA 20 09-10-2017 04:23 PM
Word 2013 - When deleting section breaks, cursor jumps to beginning of document ranholmom66 Word 3 07-01-2016 06:01 AM
Start find macro beginning with section 2 Find keyword in section & delete section donaldadams1951 Word VBA 5 12-03-2013 10:08 AM
Footnotes in one column section forcing two column section start from a new page... thorin Word 1 12-19-2012 01:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:17 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