View Single Post
 
Old 10-19-2017, 12:59 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,342
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote