Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Hideing and unhiding worksheets

Hi,

How can I hide and unhide worksheets base on a value of a cell which is in
another sheet.

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Hideing and unhiding worksheets

If worksheets("Sheet 1").cells(1,1).value = "Show Sheet" then
worksheets("Sheet 2").visible = true
else if worksheets("Sheet 1").cells(1,1).value = "Hide Sheet" then
worksheets("Sheet 2").visible = false
end if

wrote it on the fly but it should work.

2007-User wrote:
Hi,

How can I hide and unhide worksheets base on a value of a cell which is in
another sheet.

Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Hideing and unhiding worksheets

Thanks John,

"John Fuller" wrote in message
oups.com...
If worksheets("Sheet 1").cells(1,1).value = "Show Sheet" then
worksheets("Sheet 2").visible = true
else if worksheets("Sheet 1").cells(1,1).value = "Hide Sheet" then
worksheets("Sheet 2").visible = false
end if

wrote it on the fly but it should work.

2007-User wrote:
Hi,

How can I hide and unhide worksheets base on a value of a cell which is
in
another sheet.

Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Hideing and unhiding worksheets

or just cut the bottom off:

If worksheets("Sheet 1").cells(1,1).value = "Show Sheet" then
worksheets("Sheet 2").visible = true
else
worksheets("Sheet 2").visible = false
end if


John Fuller wrote:
If worksheets("Sheet 1").cells(1,1).value = "Show Sheet" then
worksheets("Sheet 2").visible = true
else if worksheets("Sheet 1").cells(1,1).value = "Hide Sheet" then
worksheets("Sheet 2").visible = false
end if

wrote it on the fly but it should work.

2007-User wrote:
Hi,

How can I hide and unhide worksheets base on a value of a cell which is in
another sheet.

Thanks in advance.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Hideing and unhiding worksheets

Thanks,

"LooneyTunes" wrote in message
oups.com...
or just cut the bottom off:

If worksheets("Sheet 1").cells(1,1).value = "Show Sheet" then
worksheets("Sheet 2").visible = true
else
worksheets("Sheet 2").visible = false
end if


John Fuller wrote:
If worksheets("Sheet 1").cells(1,1).value = "Show Sheet" then
worksheets("Sheet 2").visible = true
else if worksheets("Sheet 1").cells(1,1).value = "Hide Sheet" then
worksheets("Sheet 2").visible = false
end if

wrote it on the fly but it should work.

2007-User wrote:
Hi,

How can I hide and unhide worksheets base on a value of a cell which is
in
another sheet.

Thanks in advance.




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
print out hideing Mogge Excel Discussion (Misc queries) 2 April 20th 07 01:28 PM
Unhiding all worksheets Marco Excel Programming 6 June 28th 06 04:27 PM
Unhiding worksheets Oldjay Excel Discussion (Misc queries) 9 May 23rd 06 07:38 PM
Unhiding all worksheets. rbanks[_11_] Excel Programming 2 December 29th 05 05:39 PM
Unhiding worksheets Nic7602 Excel Worksheet Functions 2 June 6th 05 05:11 PM


All times are GMT +1. The time now is 12:41 AM.

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"