A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hiding Tables



 
 
Thread Tools Display Modes
  #1  
Old December 18th, 2009, 10:29 PM posted to microsoft.public.word.tables
Robert Burrows
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  
Old December 20th, 2009, 11:12 PM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
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  
Old December 21st, 2009, 09:34 PM posted to microsoft.public.word.tables
Robert Burrows[_2_]
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?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.