![]() |
|
#1
|
||||
|
||||
![]() Before your code will have a chance of running, you'll need to replace all those 'smart' single quotes and double quotes with straight quotes. Even then, however, you should be aware that VBA has no idea what a grammatical sentence is. For example, consider the following: Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Macropod/Paul,
Thank you for the information. I have no issues with a macro thinking your example is 5 sentences. I understand that it doesn't know the difference between a period at the end of a sentence and one used in a title such as mister (Mr.) or a dollar value and I'm okay with that. When I try to change the 'smart' single quotes (') with straight quotes (") I get the following error Compile error: Expected: line number or label or statement or end of statement with an OK and a HELP button. when I select the HELP button it opens a web browser page. I've attached a screen shot. If there are recommendations for a different macro I am open to new ideas. Thank you. |
![]() |
Tags |
vba code |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jeffreybrown | Word | 2 | 08-17-2018 07:09 PM |
![]() |
Awesomeg | Word | 2 | 03-09-2018 09:37 PM |
![]() |
Andoheb | Word | 29 | 07-03-2014 01:48 PM |
![]() |
awolf | Word VBA | 7 | 03-16-2014 02:40 PM |
I want to lock a sentence in Word | smorkette | Word | 1 | 02-06-2010 12:57 AM |