![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
Word's VBA 'sentence' definition has no idea what a grammatical sentence is, therefore you can't use:
Selection.MoveRight Unit:=wdSentence, Count:=1 reliably to get the next grammatical sentence. The problem with trying to build a set of exclusions of the kind you envisage is that there is no end to the number of possible exceptions once you start trying to cope with every kind of abbreviation & acronym while at the same time handling the fact it's possible a grammatical sentence might actually end with such an abbreviation or acronym. Plus, sentences don't always end with periods... And no, the "With Selection.Find" function isn't the only one; neither would it be my first choice.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
What would be your first choice (as opposed to the "With Selection.Find" function) to moving the insertion point based on surrounding text?
|
#3
|
|||
|
|||
![]() Quote:
I don't want to give up yet just because there are other possible acronyms either. The three I mentioned are really the only ones that I encounter in my reading. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Select backstage Print command programmatically | NobodysPerfect | Excel Programming | 0 | 04-23-2015 08:52 AM |
Select the whole sentence when a word has been modified | gloos | Word VBA | 1 | 04-14-2015 10:24 PM |
![]() |
ndnd | Word VBA | 10 | 01-06-2015 01:47 PM |
![]() |
Microsoftenquirer1000 | Word | 8 | 11-19-2014 02:10 PM |
Microsoft Word 2003: casual style from the writing box? | intooutfrom | Word | 0 | 01-04-2010 01:52 PM |