Inserting field names in if..then..else

Larry

New member
Local time
Today, 11:33
Joined
Mar 30, 2011
Messages
9
I have found several sites where the field names are formatted as { MERGEFIELD FirstName }, but no matter how I try, this doesn't call the mergefield function, but instead places the actual text: { MERGEFIELD FirstName } I tried moving deleting and adding quotation marks to no effect.

My code is:
{ IF { MERGEFIELD SelectedParagraph }<>"" "{ MERGEFIELD FirstName}" ""}

I even tried this work around, but it failed too. :(

{ IF { MERGEFIELD SelectedParagraph }<>"" "{ INCLUDETEXT c:\\Users\\RPA2\\Documents\\Mail Merge for RPA\\RemindersParagraph.docx }" ""}
 
Solved!

Basically just make your original If..Then...Else statement leaving out the fields you want in the statement.

Then pressing Alt + F9 will make the code visible (the code must be visible for this to work!)

Then add the fields by the usual method. (including nested If..Then...Else statements)
works wonderfully!

Larry
 
Yea.. all you needed is Alt+F9
 

Users who are viewing this thread

Back
Top Bottom