Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2019, 02:07 AM
PWH68 PWH68 is offline Extracting Specific Text Strings Windows 10 Extracting Specific Text Strings Office 2016
Novice
Extracting Specific Text Strings
 
Join Date: Sep 2019
Posts: 4
PWH68 is on a distinguished road
Default Thanks

Quote:
Originally Posted by Guessed View Post
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



Thank you
Reply With Quote
Reply



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 09:07 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