#1   Report Post  
Posted to microsoft.public.word.tables
Robert Burrows Robert Burrows is offline
external usenet poster
 
Posts: 1
Default Hiding Tables

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?
  #2   Report Post  
Posted to microsoft.public.word.tables
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Hiding Tables

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

ActiveDocument.Bookmarks("Table").Range.Font.Hidde n = 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.

"Robert Burrows" Robert wrote in message
...
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?


  #3   Report Post  
Posted to microsoft.public.word.tables
Robert Burrows[_2_] Robert Burrows[_2_] is offline
external usenet poster
 
Posts: 1
Default Hiding Tables


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

"Doug Robbins - Word MVP" wrote:

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

ActiveDocument.Bookmarks("Table").Range.Font.Hidde n = 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.

"Robert Burrows" Robert wrote in message
...
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?


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding rows in RTF tables with merged cells? Chris Shearer Cooper Tables 4 March 13th 07 12:42 AM
Automatic Hiding of Tables based upon value in first cell Spankit115 Tables 4 January 15th 07 09:17 AM
Hiding Patrick Whittle Page Layout 2 October 10th 06 08:46 AM
Hiding row or coloumn? Attack Tables 1 August 23rd 06 02:53 AM
hiding gridline chc Tables 3 June 23rd 05 11:28 PM


All times are GMT +1. The time now is 04:41 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"