![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Your attachment has 'Command:' and 'Some text' on the same line, so it's unreasonable to expect the macro coded to deal with the document as supplied to put them on different rows when you didn't say that's what you wanted. Furthermore, your attachment has a non-breaking space between 'Command:' and 'Some text', just like the others, not the standard space you're now saying it has. To handle both scenarios, you could change:
.Text = ":[^s]{1,}" to: .Text = ":[ ^s]{1,}"
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
| Tags |
| vba macro, word 2016 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Referencing text blocks from one document in several | chrisr34000 | Word | 2 | 07-05-2017 03:17 PM |
Convert all tables to text but ...
|
bnyamin | Word VBA | 6 | 05-25-2017 12:15 AM |
Convert Word Tables to PDF
|
tcoggins | Word Tables | 2 | 06-29-2016 10:28 AM |
Macro Needed To Convert Text in Word to Plain Text and Back to Word
|
rsrasc | Word VBA | 5 | 12-18-2015 07:13 AM |
convert text to tables
|
oraenthu | Word | 8 | 03-17-2015 10:22 AM |