ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide Worksheet (https://www.excelbanter.com/excel-programming/433748-hide-worksheet.html)

James

Hide Worksheet
 
Is there a way I can hide a worksheet once I click off it, once I click on
any other worksheet. Thanks.

Jacob Skaria

Hide Worksheet
 
Select the sheet tab which you want to work with. Right click the sheet tab
and click on 'View Code'. This will launch VBE. Paste the below code to the
right blank portion. Get back to to workbook and try out.

Private Sub Worksheet_Deactivate()
Me.Visible = xlSheetHidden
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"James" wrote:

Is there a way I can hide a worksheet once I click off it, once I click on
any other worksheet. Thanks.


James

Hide Worksheet
 
thanks, worked great

"Jacob Skaria" wrote:

Select the sheet tab which you want to work with. Right click the sheet tab
and click on 'View Code'. This will launch VBE. Paste the below code to the
right blank portion. Get back to to workbook and try out.

Private Sub Worksheet_Deactivate()
Me.Visible = xlSheetHidden
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"James" wrote:

Is there a way I can hide a worksheet once I click off it, once I click on
any other worksheet. Thanks.



All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com