![]() |
|
#2
|
||||
|
||||
|
I doubt VBA would be much help with this, since VBA has no idea what a grammatical sentence is. For example, consider the following:
Quote:
You can achieve most of what you want with a wildcard Find/Replace, where: Find = ([!.\!\?;:]@[.\!\?;:])([ ^13]) Replace = \1/\1\2 Regarding tables, you might need to ensure the final sentence has the appropriate punctuation and there's at least a space character before the end-of-cell marker. Textbox final sentences would also require the appropriate punctuation. With lists, the 'and' or 'or' following the penultimate entry won't be duplicated, nor will final entries followed by a comma. Sentences containing decimal numbers will also trip up the Find/Replace, with only the portion following the decimal being duplicated.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| bilingual translation, duplicate, slash |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Duplicating dropdown box but also removing text in paragraphs when option is not selected | arty1 | Word VBA | 2 | 08-08-2020 09:30 PM |
Help duplicating text box
|
tabbakh | Word | 2 | 11-29-2017 02:36 PM |
| Auto Duplicating Text in Doc | strodden | Word VBA | 4 | 11-03-2017 11:10 PM |
| Showing and hiding sections, duplicating text, etc. | Networkrail | Word | 1 | 07-11-2017 02:14 PM |
| A slash shows up before bookmarks | Hunter | Word | 0 | 03-07-2010 05:57 AM |