Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hiding/showing a table with VBA
Hello all,
I am trying to find out for I can trun a table on or off depending on a yes/no answer from a form field. I am using Word 2003 and the VBA that comes with it. Any ideas/links would be of great help. ~Amanda~ |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hiding/showing a table with VBA
Hi Amanda,
You don't need vba for this. The solution is to: .. select the table .. press Ctrl-F9 to enclose it in a field .. just before the table, press Ctrl-F9 again, to insert another field .. fill in the field so that they look like type {IF{BkMrk \* Caps}= "Y*" Table} where 'BkMrk' is the bookmark name assigned to your formfield and 'Table' is your table .. use 'N' instead of 'Y' above if the table is meant to appear in response to a 'no' answer .. set the formfield's properties to 'calculate on exit' Cheers -- macropod [MVP - Microsoft Word] "AmandaH" wrote in message oups.com... Hello all, I am trying to find out for I can trun a table on or off depending on a yes/no answer from a form field. I am using Word 2003 and the VBA that comes with it. Any ideas/links would be of great help. ~Amanda~ |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Hiding/showing a table with VBA
Hi AmandaH,
I am trying to find out for I can trun a table on or off depending on a yes/no answer from a form field. I am using Word 2003 and the VBA that comes with it. You can format the table with a specific style. The code for the On Exit property of the checkbox change the styles' FONT.Hidden property to true (or false). this works without turning off document protection. Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-) |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
20x20 multiplication table | Tables | |||
Table headers/footers and layout | Page Layout | |||
How to Avoid Word 2003 Table Style Problems | Tables | |||
Table AutoFormats vs. Table Styles confusion | Tables | |||
table caption numbering | Tables |