• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 825
  • Last Modified:

Make Table Invisible by using {IF {MERGEFIELD

Hi Experts,
Is it possible to make a whole word Table in a mailmerge document disappear/appear by just using {IF {MERGEFIELD
(ie not using VBA)
TIA
Gary
0
tbsgadi
Asked:
tbsgadi
  • 5
  • 5
  • 5
1 Solution
 
bruintjeCommented:
Hello tbsgadi,

if i'm interpreting your question correct no you cannot work on other parts of a document with the IF{} mergefield condition only if the mergefield contains a table

hope this helps a bit
bruintje
0
 
GrahamSkanRetiredCommented:
Yes.
Save the table as Autotext and then remove it from the document.

{ IF {MERGEFIELD Field1} = "Tab1" { AUTOTEXT MyTable } "" }
0
 
tbsgadiAuthor Commented:
To Clarify:

With mergefield condition I can make a field "invisible"
Eg {IF {MERGEFIELD AccessField}<0 " " "Something"}

I want to know if I can somehow do that for a Table
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
bruintjeCommented:
yes i understood that, hadn't thought of the autotext as Graham came up with
0
 
tbsgadiAuthor Commented:
My Table also has Mergefields in it!
If not the table then can I do something to make the table borders disappear/appear?
0
 
bruintjeCommented:
what you can do is hide lines with the mergefields in it using the IF{} if that could mean that any borders around them would also become invisible i do not know but that would be worth a try
0
 
GrahamSkanRetiredCommented:
Is there a problem with having mergefields in the table?

0
 
bruintjeCommented:
@Graham, can you make some part autotext and still have mergefields in it?
0
 
GrahamSkanRetiredCommented:
I did a quick test with a merge field in one of the table cells, and it showed the table with the field value in the cell in the result document.

I'll try something more complex.
0
 
bruintjeCommented:
didn't knew that you could do that in the first place :-)
0
 
tbsgadiAuthor Commented:
I also came up with the idea of drawing lines inside the {IF}.
If noone comes up with a better Idea I'll go with that.
0
 
GrahamSkanRetiredCommented:
I have now tried displaying five fields inside the autotext table and it works OK for me.
tbsqadi, do you have problems with that?
0
 
tbsgadiAuthor Commented:
I'm looking at the  autotext table .
Looks excellent but I can't get the field { AUTOTEXT MyTable } to work!
0
 
tbsgadiAuthor Commented:
Learn new things Every Day:>
BTW where is the Autotext Saved? In the Template?
0
 
GrahamSkanRetiredCommented:
Yes. There is a box near the bottom of the AutoCorrect dialogue labelled 'Look in:', where you can choose between Normal.dot and any other Global template.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now