Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Doing something wrong - xlVeryHidden

I'm doing something wrong with a very simple command.
When I step through the Auto_Open macro it seems to
execute fine, but the worksheet is still visible. What's
wrong with the following?

Worksheets("Graph Data").Visible = xlVeryHidden

What have I done stupid with this simple statement?

thanks in advance

kevin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Doing something wrong - xlVeryHidden

Is it your only visible sheet?

You can't hide them all.

Kevin wrote:
I'm doing something wrong with a very simple command.
When I step through the Auto_Open macro it seems to
execute fine, but the worksheet is still visible. What's
wrong with the following?

Worksheets("Graph Data").Visible = xlVeryHidden

What have I done stupid with this simple statement?

thanks in advance

kevin

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Doing something wrong - xlVeryHidden

Not at all. There are more than a dozen worksheets, and
the idea behind hiding this is to keep the number of
sheets from being overwhelming.

-----Original Message-----
Is it your only visible sheet?

You can't hide them all.

Kevin wrote:
I'm doing something wrong with a very simple command.
When I step through the Auto_Open macro it seems to
execute fine, but the worksheet is still visible.

What's
wrong with the following?

Worksheets("Graph Data").Visible = xlVeryHidden

What have I done stupid with this simple statement?

thanks in advance

kevin

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Doing something wrong - xlVeryHidden

Shouldn't be anything wrong. Sometimes, if you leave excel and come back all
is well again.

--
Don Guillett
SalesAid Software

"Kevin" wrote in message
...
I'm doing something wrong with a very simple command.
When I step through the Auto_Open macro it seems to
execute fine, but the worksheet is still visible. What's
wrong with the following?

Worksheets("Graph Data").Visible = xlVeryHidden

What have I done stupid with this simple statement?

thanks in advance

kevin



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Doing something wrong - xlVeryHidden

Are you sure "Graph Data" is the correct name of the sheet, and that it is
in the active workbook? Dumb question, but it's possible you could have
leading or trailing spaces. Normally this would throw an error but not if
you have On Error Resume Next statement before that.

--

Vasant





"Kevin" wrote in message
...
I'm doing something wrong with a very simple command.
When I step through the Auto_Open macro it seems to
execute fine, but the worksheet is still visible. What's
wrong with the following?

Worksheets("Graph Data").Visible = xlVeryHidden

What have I done stupid with this simple statement?

thanks in advance

kevin





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Doing something wrong - xlVeryHidden

Hi,
don'tknow why it's not working, have you tryed sticking it in the on
open event of the workbook, or even in a seprate mod, sometimes this
can "work".

Good Luck

Ross
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Doing something wrong - xlVeryHidden

Kevin,

A slightly different approach would be to use the CodeName of the sheet in
your statement.

For example if "Graph Data" has a CodeName of "Sheet1" then the statement
would be:
Sheet1.Visible = xlSheetVeryHidden

Troy

"Kevin" wrote in message
...
I'm doing something wrong with a very simple command.
When I step through the Auto_Open macro it seems to
execute fine, but the worksheet is still visible. What's
wrong with the following?

Worksheets("Graph Data").Visible = xlVeryHidden

What have I done stupid with this simple statement?

thanks in advance

kevin



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
What's wrong in this Eqn? Raz Excel Worksheet Functions 1 January 12th 10 07:27 PM
Xlveryhidden K1KKKA Excel Discussion (Misc queries) 9 October 6th 07 04:19 AM
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
What am I doing wrong? Jeff New Users to Excel 4 March 6th 05 03:05 AM
what's wrong? active_x[_13_] Excel Programming 1 September 29th 03 07:12 AM


All times are GMT +1. The time now is 07:37 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"