![]() |
|
![]() |
|
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 | Thread Starter | Forum | Replies | Last Post |
Referencing text blocks from one document in several | chrisr34000 | Word | 2 | 07-05-2017 03:17 PM |
![]() |
bnyamin | Word VBA | 6 | 05-25-2017 12:15 AM |
![]() |
tcoggins | Word Tables | 2 | 06-29-2016 10:28 AM |
![]() |
rsrasc | Word VBA | 5 | 12-18-2015 07:13 AM |
![]() |
oraenthu | Word | 8 | 03-17-2015 10:22 AM |