![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#10
|
|||
|
|||
|
Graham,
True. Didn't think of that as a decimal wasn't in the example text. So, yes leave your line as it and append to your existing: oCell.End = oCell.End - 1 oCell.Text = oRng.Text If Right(oCell.Text, 1) = "." Then oCell.Text = Left(oCell.Text, _ Len(oCell.Text) - 1) To eliminate the period (when it is a period). |
| Tags |
| keyword, macro, search |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 |
Macro to search for specific words in a document
|
mike0215 | Word VBA | 2 | 11-28-2017 07:25 AM |
| VBA Word - Find & Apply Styles to Specific Words - Using Case Statement | jc491 | Word VBA | 17 | 12-26-2015 12:25 PM |
Need VBA For Macro On How To Remove Specific Words
|
netchie | Word VBA | 6 | 08-28-2012 03:37 PM |
Macro for highlighting specific number of words
|
icsjohn | Word VBA | 2 | 12-07-2011 06:44 PM |