#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default hidden worksheet

Please can someone answer this question I got at an interview?

What might be a reason why code to make a worksheet hidden might not
work?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default hidden worksheet

The workbook is protected at ToolsProtectionProtect Workbook.


Gord Dibben MS Excel MVP

On 16 Jan 2007 16:10:04 -0800, "colmkav" wrote:

Please can someone answer this question I got at an interview?

What might be a reason why code to make a worksheet hidden might not
work?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default hidden worksheet

Here are a couple:

It'll fail if the workbook's structure is protected
(tools|Protection|protect workbook|check structure)

It'll fail if that's the only visible worksheet in the workbook.

The code tries to hide a worksheet by name and there is no worksheet by that
name (the user renamed/deleted it).



colmkav wrote:

Please can someone answer this question I got at an interview?

What might be a reason why code to make a worksheet hidden might not
work?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default hidden worksheet

The code tries to hide a worksheet by name and there is no worksheet by that
name (the user renamed/deleted it).


Or the code is trying to select the hidden sheet in question in order to
hide it, but the sheet is already hidden (or does not exist or is otherwise
unavailable).

In any event, it's probably due to the user doing something you didn't think
any rationale person would attempt.


"Dave Peterson" wrote:

Here are a couple:

It'll fail if the workbook's structure is protected
(tools|Protection|protect workbook|check structure)

It'll fail if that's the only visible worksheet in the workbook.

The code tries to hide a worksheet by name and there is no worksheet by that
name (the user renamed/deleted it).



colmkav wrote:

Please can someone answer this question I got at an interview?

What might be a reason why code to make a worksheet hidden might not
work?


--

Dave Peterson

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
How do I get ONLY new info from 1 Worksheet to another automatical Elaine Excel Worksheet Functions 6 July 13th 06 05:45 PM
Hidden worksheet str8trini Excel Worksheet Functions 1 July 11th 06 08:12 PM
How do I NOT copy hidden rows to a new worksheet? Steve Excel Discussion (Misc queries) 3 March 3rd 06 06:47 PM
Hidden Worksheet gti_jobert Excel Worksheet Functions 2 February 13th 06 03:06 PM
Accessign formula's in worksheet that appear to have been hidden Tim Ashcom Excel Discussion (Misc queries) 9 July 22nd 05 04:53 PM


All times are GMT +1. The time now is 04:30 PM.

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

About Us

"It's about Microsoft Excel"