Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 10-02-2019, 12:45 AM
Guessed's Avatar
Guessed Guessed is offline Extracting Specific Text Strings Windows 10 Extracting Specific Text Strings Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

i would suggest you use the full paragraph instead of asking Word to determine what is a sentence. I haven't tested this but the following changes might do the job...

Replace:
oRng.Start = oRng.Sentences(1).Start
oRng.End = oRng.Sentences(1).End

With:
Set oRng = oRng.Paragraphs(1).Range
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Specific Text Strings Renaming several strings of text by their pattern noname91 Word 10 01-05-2017 05:46 PM
Extracting lines containing specific word. S.Allen Word VBA 1 03-27-2015 10:50 PM
Extracting specific rows sbdk82 Excel 4 09-07-2014 10:24 PM
Extracting Specific Text Strings Need help extracting specific text from one doument to another with macro/VBA. zsmithku Word 1 04-15-2011 03:46 PM
Extracting Specific Text Strings update style of all strings available between two specific strings vikrantkale Word 1 03-28-2011 06:13 PM

Other Forums: Access Forums

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