Word 2010: Marco to Hide Tables

JaredMcCullough

Well-known Member
Joined
Aug 1, 2011
Messages
516
I have never touched the VBA in word before so this whole process is new to me but I know some capability exists.

Essentially what I am looking for is pretty basic.

I have a series of tables (Table 1-10)

I have 3 "ActiveX Control" checkboxes

When the user selects Checkbox 1 I need tables 1,2,4,5 to be visible and the rest to be hidden
When the user selects Checkbox 2 I need tables 1,3,6,7 to be visible and the rest hidden
When the user select Checkbox 3 I need tables 1,8,9,10 to be visible and the rest hidden

Thanks in advance for any help as it would be much appreciated.

Jared
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Trying to hide content is an unreliable way of managing document content. That's because whether content formatted as hidden remains visible - or even prints (regardless of whether it's visible) depends entirely upon how the user has Word configured (i.e. you cannot control this at the document level). The better approach is to start of with all tables visible and delete the unwanted ones, according to which ActiveX checkbox is checked.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top