View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
John Fuller John Fuller is offline
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.