![]() |
#7
|
||||
|
||||
![]()
The code Trim(Split(UCase(.Code.Text), "MERGEFIELD")(1))
simply gets the mergefield name as an upper-case string. The code's If test simply checks whether that string is "LABEL" - also an upper-case string.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
dmreno | Word VBA | 3 | 07-30-2019 02:31 PM |
referenceing/finding word from one documents into another documents and indicating their location | rok123 | Word VBA | 1 | 02-07-2016 04:50 PM |
![]() |
ducky831 | Excel Programming | 3 | 09-17-2015 01:36 PM |
![]() |
mescaL | Word VBA | 3 | 11-03-2014 10:51 PM |
Finding specific text within body of email | Tammfran | Outlook | 0 | 03-14-2014 02:32 PM |