ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Doing something wrong - xlVeryHidden (https://www.excelbanter.com/excel-programming/299919-doing-something-wrong-xlveryhidden.html)

Kevin

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

Steve Garman

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


Kevin

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

.


Don Guillett[_4_]

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




Vasant Nanavati

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




ross

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

TroyW[_2_]

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





All times are GMT +1. The time now is 02:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com