Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
When i put in workbook_open the following code : For Each ws In Worksheets ws.Visible = xlSheetHidden Next I get an error code: runtime error 1004 unable to set the visible property of the worksheet class Does anyone know how to solve that ? Thnx. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not an expert, but;
I think there must be at least one visible WS in a Workbook. -- Regards; Rob ------------------------------------------------------------------------ "Jean-Pierre Hermans" wrote in message ... Hello, When i put in workbook_open the following code : For Each ws In Worksheets ws.Visible = xlSheetHidden Next I get an error code: runtime error 1004 unable to set the visible property of the worksheet class Does anyone know how to solve that ? Thnx. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
At least one worksheet needs to be visible.
for i = 2 to worksheets.count worksheets(i).Visible = xlSheetHidden Next -- Regards, Tom Ogilvy Jean-Pierre Hermans wrote in message ... Hello, When i put in workbook_open the following code : For Each ws In Worksheets ws.Visible = xlSheetHidden Next I get an error code: runtime error 1004 unable to set the visible property of the worksheet class Does anyone know how to solve that ? Thnx. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hidden Worksheets | Excel Discussion (Misc queries) | |||
Hidden worksheets | New Users to Excel | |||
Hidden Worksheets | Excel Discussion (Misc queries) | |||
How do I detect hidden worksheets or hidden data on a worksheet? | Excel Discussion (Misc queries) | |||
Hidden worksheets | Excel Programming |