Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Exit Sub if sheet is hidden
How can I write a line in VBA to Exit Sub if a sheet named PNSheet is hidden?
Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Exit Sub if sheet is hidden
If not Worksheets(PNSheet).Visible = True then Exit Sub
HTH -- AP "Alex" a écrit dans le message de ... How can I write a line in VBA to Exit Sub if a sheet named PNSheet is hidden? Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Exit Sub if sheet is hidden
If Sheets("PNSheet").Visible < xlSheetVisible Then
Exit Sub End If -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Alex" wrote in message ... How can I write a line in VBA to Exit Sub if a sheet named PNSheet is hidden? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I need my Hidden Rows to stay hidden when I print the sheet. | Excel Discussion (Misc queries) | |||
If a called sub exit, how to the caller exit right away? | Excel Programming | |||
Saving hidden data with a worksheet (preferably without using a hidden sheet) | Excel Programming | |||
Problem pasting a row from a hidden sheet to the first free row on another visible sheet | Excel Programming | |||
Display sheet upon exit | Excel Programming |