Checkbox Controls and Worksheet(tabs) visibility

gemcgraw

Board Regular
Joined
Mar 11, 2011
Messages
72
I am trying to control the visibility of tabs in a workbook based on what Checkbox is "checked" on the first worksheet. AND, if the checkbox is checked, there is a minimal data requirement (i.e. row#) on that sheet before it will allow you to close the file -or- leave the tab. In my mind I can see the logic but I can't vision or grasp the actual coding required within Excel.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
To change between sheets, use a version of this:

Code:
Sub CheckBox1_Click()
    On Error GoTo NoSheetFound
    Sheets("Sheet1").Activate
NoSheetFound:
    Exit Sub
End Sub
However, I would suggest using option buttons instead...
 
Upvote 0
Actually, I'm not needing a "hyperlink" to navigate to the tabs. My problem and goal is to hide/show tabs based on what control boxes are "checked" on tab1. Example: I have a workbook with 20 tabs (worksheets). Tab1 is my "control" tab that has the control "Checkboxs". Tabs 2-20 are invisible. When Checkbox1 is "checked" Tab2 becomes visible, etc.
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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