ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hidden sheets (https://www.excelbanter.com/excel-programming/425391-hidden-sheets.html)

Heera[_2_]

Hidden sheets
 
Hi,

I want a macro which should run a procedure if a sheet is hidden(not
visiable).
(My workbook is password protected)

I want a code which will identify the sheet is hidden or not. Here is my
code but is is not working.

If Sheets("Letter Audit Sheet").Hidden = True Then
Activecell.value=1520
Exit Sub
End if

Please help

Mike H

Hidden sheets
 
Hi,

Try this

If Sheets("Letter Audit Sheet").Visible = True Then
ActiveCell.Value = 1520
Exit Sub
End If

Mike

"Heera" wrote:

Hi,

I want a macro which should run a procedure if a sheet is hidden(not
visiable).
(My workbook is password protected)

I want a code which will identify the sheet is hidden or not. Here is my
code but is is not working.

If Sheets("Letter Audit Sheet").Hidden = True Then
Activecell.value=1520
Exit Sub
End if

Please help


Heera[_2_]

Hidden sheets
 
hey it worked out....

thanks for your support.


All times are GMT +1. The time now is 10:12 AM.

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