Hide or show a table (Word)
Sylvian
-
m@rina Posted messages 27378 Registration date Status Moderator Last intervention -
m@rina Posted messages 27378 Registration date Status Moderator Last intervention -
Hello,
I am currently working on a Word document filled with tables and I want to show or hide my tables independently? If possible, with a simple button, like a + or -. Is that possible?
I am currently working on a Word document filled with tables and I want to show or hide my tables independently? If possible, with a simple button, like a + or -. Is that possible?
4 answers
Hello Sylvian,
It's possible with a macro.
Ah, I just happen to have one ready here:
https://faqword.com/index.php/word/faq-word/tableaux/907-comment-afficher-et-masquer-rapidement-des-lignes-de-tableau
m@rina
--
I am immune to snake venom, to poisoned herbal tea, and to written assaults. I look for the simplest solutions for you while avoiding spreading jam.
It's possible with a macro.
Ah, I just happen to have one ready here:
https://faqword.com/index.php/word/faq-word/tableaux/907-comment-afficher-et-masquer-rapidement-des-lignes-de-tableau
m@rina
--
I am immune to snake venom, to poisoned herbal tea, and to written assaults. I look for the simplest solutions for you while avoiding spreading jam.
Hello,
can you provide your version of Word and your goal?
For example, should the user be able to enter data in the tables or is it just for viewing?
Is there a title for each table?
Please give a bit more detail.
--
C-Claire
can you provide your version of Word and your goal?
For example, should the user be able to enter data in the tables or is it just for viewing?
Is there a title for each table?
Please give a bit more detail.
--
C-Claire
Hello,
for those who have Word 2013 and depending on the layout of these tables, the macros proposed by m@rina are no longer necessary.
We can assume that each table has a title or a caption. Simply apply level 9, for example, to each of these captions (Format, Paragraph, Hierarchical Level) to display a small triangle on their left, which allows you to show/hide the content of this level with a simple click, just like in Outline mode.
Disadvantage: if only the tables need to be hidden, a higher-level paragraph (level 8, for example) must be declared above the text or a simple empty paragraph below each table.
Advantage: simplicity and no borders that remain visible even when the table is collapsed. However, the presence of borders may draw attention to the existence of a table.
The hidden font could also be used effectively and simply to hide the tables, but this would apply to all tables and not independently as requested by Sylvian.
--
C-Claire
for those who have Word 2013 and depending on the layout of these tables, the macros proposed by m@rina are no longer necessary.
We can assume that each table has a title or a caption. Simply apply level 9, for example, to each of these captions (Format, Paragraph, Hierarchical Level) to display a small triangle on their left, which allows you to show/hide the content of this level with a simple click, just like in Outline mode.
Disadvantage: if only the tables need to be hidden, a higher-level paragraph (level 8, for example) must be declared above the text or a simple empty paragraph below each table.
Advantage: simplicity and no borders that remain visible even when the table is collapsed. However, the presence of borders may draw attention to the existence of a table.
The hidden font could also be used effectively and simply to hide the tables, but this would apply to all tables and not independently as requested by Sylvian.
--
C-Claire
This response that I'm discovering today is nonsense, just to contradict! ;(
First of all, by default the titles of tables are placed after the table, so it's not the table that will disappear but the text that follows.
If the caption is before the table, the table will disappear but the text that follows will too until the next title.
Anyway... pffff
m@rina
Sorry, I didn't think I would get responses so quickly.
So yes, I have Word 2013, the tables need to be editable and yes, there is a title for each. So I'm going to try your technique Claire.
I'm a bit less experienced with macros but I'm still going to give it a try, knowing how to do it is always useful.
Thank you all!
So yes, I have Word 2013, the tables need to be editable and yes, there is a title for each. So I'm going to try your technique Claire.
I'm a bit less experienced with macros but I'm still going to give it a try, knowing how to do it is always useful.
Thank you all!
Hello m@rina
I tried your macro, it works really well, however when I used your 'hide' command once and then 'show', I can no longer use them.
For example, I hide a table, I show it to work on it and I want to hide it again, but it's impossible. Do you have the same problem?
Thank you!
Hello,
Things can change in 10 years!!!
Try this:
Note that this works on the selected table. It should be noted that the table does not completely disappear; the rows are still visible. It also allows you to reselect to make it reappear.
m@rina