View Single Post
 
Old 10-19-2017, 12:32 AM
Office_Worker Office_Worker is offline Windows 8 Office 2013
Novice
 
Join Date: Oct 2017
Posts: 4
Office_Worker is on a distinguished road
Default

Thanks!
What does the following line do in the ways of selecting the code fields or texts?

Code:
If Trim(Split(UCase(.Code.Text), "MERGEFIELD")(1)) = "Label" Then
I replaced 'Label' with the relevant information and left 'MERGEFIELD' in place.
The code runs and opens/closes all the relevant docs but the result comes up empty which I know can't be true. It might be that I need to replace 'MERGEFIELD' with something but doing so makes the code stop running in this line. If I then mouse over '.Code.Text' it shows me an unrelated fieldname as a value.

Last edited by macropod; 10-19-2017 at 12:57 AM. Reason: Deleted unnecessary quote of entire post replied to
Reply With Quote