Word mail merge: show or hide table

mail-mergemicrosoft word

I'm creating a mail merge document where I need to hide swathes of the document based on a field I have. OK. That's simple enough. {IF {MERGEFIELD My_Field} = "True" "a bunch of text ""}. But one portion of the document I need to hide contains a table (the table is not dynamic in any way). However, when I put it inside my merge code, the other text shows up, but not the table. Is this a limitation of Word, or is it possible to have a table within my conditionally-shown text?

Best Answer

Well, I didn't really figure out what was causing the issue, but I found a good workaround; I split the information into a separate document and then used {IF {MERGEFIELD My_Field} = "True" "{INCLUDETEXT "C:\\separatefile.docx"}" "" }.

Related Question