![]() |
#12
|
|||
|
|||
![]()
Hi, Vivka! I'm again in trouble. I'm trying to modify the code below (taken from the one above, #9) so as to select all the words that precede the comma in the first paragraph. In other words I need to select from paragraph start to the comma. Can you help? Thanks!
Code:
Set oRng = ActiveDocument.Paragraphs(1).Range oRng.Select If InStr(1, oRng, ",") > 0 Then oRng.Collapse oRng.MoveUntil Cset:=",", Extend 'Extend from paragraph start until comma End If |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foreign words/names Read Aloud | HanselM | Word | 1 | 05-01-2023 09:36 AM |
![]() |
Firebody | Word | 8 | 03-06-2022 08:22 AM |
How to find (highlight) two and more words in a list of 75k single words in Word 2010 | Usora | Word | 8 | 05-29-2018 03:34 AM |
Need to extract domain names containing only specific words (MAJOR BULK) | Maxwell314 | Excel | 4 | 12-08-2014 05:10 PM |
How to enter names in Resource Pool/names | pstein | Project | 1 | 03-26-2012 07:37 AM |