Hide and UNhide Sheet (True/False)

HotNumbers

Well-known Member
Joined
Feb 14, 2005
Messages
732
How do i check to see if a sheet is hidden if so Unhide it if not Hide it? Hide or Unhide
 
A user can set sheets to normal Hidden, so I would think it's prudent to take that into account...
Now at least he is aware he can get in trouble :biggrin::biggrin:
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
A user can set sheets to normal Hidden, so I would think it's prudent to take that into account...
Now at least he is aware he can get in trouble :biggrin::biggrin:
True enough, although I assumed (probably a bad thing for me to do :laugh:) he was not giving the user access to the toggle code (reserving the functionality for himself only). However, if the user could do what you suggest, then I think this modification to my one-liner would avoid any issues...

Code:
Sheets("Basics BW").Visible = 1 + 2 * (Sheets("Basics BW").Visible = 0) - Sheets("Basics BW").Visible
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,521
Members
452,923
Latest member
JackiG

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