LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hiding worksheets


I have a drop down list in one sheet1. the cell that the drop down is i
is named "Audit". The values that user selects is "Site" o
"Electronic". if user selects "Site" i want sheet3 to be visible. i
user selects electronic, i want sheet3 to be hidden.

so my question-
how do i code this that it will only run when that cell is changed?
(if it can only be done when sheet is changed that's fine because use
can only make a couple of changes on this sheet anyway but i dont kno
how to do this either)

i currently have this in the code of the worksheet:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If (Audit = "Electronic") Then
Sheets("Sheet3").Select
ActiveWindow.SelectedSheets.Visible = False
Else
Sheets("Sheet3").Visible = True
End If

End Sub

but it's not working. i assume i need some declarations, just not sur
what.

thanx in advance

--
tkapla
-----------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...fo&userid=2298
View this thread: http://www.excelforum.com/showthread.php?threadid=40041

 
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
Hiding worksheets Bill Ridgeway Excel Discussion (Misc queries) 3 March 15th 07 12:28 PM
Hiding worksheets Bill Ridgeway New Users to Excel 3 March 15th 07 12:28 PM
Hiding worksheets? phil2006 Excel Discussion (Misc queries) 2 July 13th 06 11:15 AM
hiding worksheets Roland Excel Programming 1 March 21st 05 01:14 PM
Hiding Worksheets Ahshiz Patel Excel Programming 1 February 16th 04 02:48 PM


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

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

About Us

"It's about Microsoft Excel"