Hiding Tables

R

Robert Burrows

I want to hide some tables in a Word doc and almost seem to be able to do it.
If I define a para style and make the font in the style Hidden and then
select the para before the table, the table itself, and the para after the
table and tag it with the style, everything I want to disappear, actually
disappears and the spacing on the page adjusts appropriately. When I make a
pdf of the page at this stage, it works. The table remains hidden. But ...
when I save and open the doc again, the tables are back (though text remains
hidden). Any solutions, workarounds?
 
D

Doug Robbins - Word MVP

Select the table and insert a bookmark and then use the following code:

ActiveDocument.Bookmarks("Table").Range.Font.Hidden = True


--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 
R

Robert Burrows

Hi Doug,

Thanks. That seems to work. But the only problem is that I don't want to
make bookmarks for every table in the doc. What I'm actually trying to do is
create "conditional" text for multiple variations of a single manual. I was
hoping there was a less tedious solution. But if there isn't, guess I'll go
with the macro. Thanks!

bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top