Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am struggling with some change event sheet code. I have
a data validation list in a cell and when I pick "Y" from this list I want 2 hidden worksheets to become visible. For some reason one of the sheets appears but not the other, this is what I am using: Private Sub Worksheet_Change(ByVal Target As Excel.Range) If Range("C20").Value = "Y" Then Sheets("sheet1").Visible = True Sheets("sheet2").Visible = True Else Sheets("sheet1").Visible = False Sheets("sheet2").Visible = False End If End Sub Any help gratefully received. Gareth |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB code to copy sheet format to another sheet | Excel Discussion (Misc queries) | |||
Sheet Code Module: copying code to | Excel Programming | |||
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet | Excel Programming | |||
unprotect sheet in code and make sheet visible | Excel Programming | |||
Help with some sheet code | Excel Programming |