hiding sheet

sherik

Board Regular
Joined
Aug 3, 2012
Messages
68
Hi, is it possible to make sheet very hidden when leaving the sheet?
I have created many sheets, and initially I made them all except sheet1 very hidden, and with some if functions according to entered data in sheet1 I unhide a particular sheet and go there. For instance I have entered some data on sheet 1 and when I run it Sheet2 unhides and opens. What I want is when I click on Sheet1 on tab bar, Sheet2 becomes automatically very hidden. Thanks in advance
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Right click Sheet2's tab, select View Code and paste in

Code:
Private Sub Worksheet_Deactivate()
Me.Visible = xlSheetVeryHidden
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,595
Messages
5,597,078
Members
414,121
Latest member
DamianX88

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
Top