Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can i have more than two range under SelectionChage?
I currently have this code but I got the first two range to work but the third range does not work: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Range("D18").Value = "YES" Then Me.CommandButton13.Visible = True Else Me.CommandButton13.Visible = False End If If Range("D19").Value = "YES" Then Me.CommandButton28.Visible = True Else Me.CommandButton28.Visible = False End If If Range("D21").Value = "YES" Then Me.CommandButton29.Visible = True Else Me.CommandButton29.Visible = False End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide/Unhide with cell double click | Excel Worksheet Functions | |||
CommandButton used to hide and unhide rows | Excel Discussion (Misc queries) | |||
Hide or Unhide certain columns based on a cell value | Excel Programming | |||
Macro to hide and unhide based on criteria | Excel Discussion (Misc queries) | |||
Hide or Unhide Column Based on Cell Value | Excel Programming |