When Hiding/Unhiding Tabs(Worksheets) Need to change button status

zagzook

New Member
Joined
Jan 3, 2017
Messages
2
I have a Tab sheet that has Buttons to each sheet and a hide/show button for each sheet when i click my hide button the text changes from Hide to Show and then Disables the Linked button. and of course when I click on Show it changes back to Hide and enables the linked button.

What I am looking for is if some one actually goes and hides the sheet (or Unhides the sheet) from the Tabs instead of the buttons is there way to change the button statuses.

so Example if I hide "Sheet1" from right clicking the tab and selecting hide, is there way to have the Hide button for Sheet1 now will show "Show" and the Linked button is disabled.

thanks
Jeff
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You could loop through all the sheets and see if they are hidden or not and have this macro update the buttons accordingly. Maybe trigger it with Worksheet_change or something?
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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