Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Worksheets hidden

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   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default Worksheets hidden

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Worksheets hidden

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hidden Worksheets stew Excel Discussion (Misc queries) 6 February 26th 10 05:49 PM
Hidden worksheets wally New Users to Excel 1 July 14th 09 06:13 AM
Hidden Worksheets zhj23 Excel Discussion (Misc queries) 3 July 9th 07 11:30 AM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
Hidden worksheets Torbjörn Steijer Excel Programming 1 November 3rd 03 08:24 PM


All times are GMT +1. The time now is 04:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"