Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old 10-06-2019, 08:54 PM
gmayor's Avatar
gmayor gmayor is offline Macro to navigate to specific point in line (Word 97) Windows 10 Macro to navigate to specific point in line (Word 97) Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,143
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The macro example finds text within a paragraph by adjusting the range accordingly. The paragraph range is set by
Code:
Set oRng = oPara.Range
which is the complete paragraph including the paragraph break which ends it.

If you want to locate the start of that paragraph then collapse the range to its start e.g
Code:
oRng.Collapse 1
You would then need to do something with that range before the macro moves on to the next paragraph.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to navigate to specific point in line (Word 97) Excel Macro finding a specific word ducky831 Excel Programming 3 09-17-2015 01:36 PM
Macro to navigate to specific point in line (Word 97) Cannot scroll past specific point in doc sunriver Word 3 06-24-2015 07:00 PM
Macro to navigate to specific point in line (Word 97) macro to add brackets to each line and add single quotes to each word in the line bracketandquotes Word VBA 17 02-16-2015 03:51 PM
Macro to navigate to specific point in line (Word 97) Deleting A blank Line that has a specific heading style , word 2010 & 2013 SteveWcg Word 5 01-08-2014 10:37 PM
Macro to navigate to specific point in line (Word 97) Point to a specific cell ericerler Mail Merge 1 08-11-2011 05:31 AM

Other Forums: Access Forums

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