Krist Cheung
New Member
- Joined
- Jan 8, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Dear all EXCEL experts:
How are you?
I have a column in a excel workbook, which have drop down list in every single cell in this column.
There are five selection, A / B / C / D / E.
There is an extra tab needs to be filled in, if the selection (in any of the cells in this column) is "C".
I managed to get it work on the first cell of the column, but when I copied and pasted, expand the code applies to each cell of the column, it does not work.
Could you please advise if there is any way to do it?
Please see below as the Code that I wrote:
Private Sub Worksheet_Change(ByVal Target As Range)
If [C4] = "C" Then
Sheets("Cells").Visible = True
Else
Sheets("Cells").Visible = False
End If
End Sub
Your urgent assistance is much appreciated
How are you?
I have a column in a excel workbook, which have drop down list in every single cell in this column.
There are five selection, A / B / C / D / E.
There is an extra tab needs to be filled in, if the selection (in any of the cells in this column) is "C".
I managed to get it work on the first cell of the column, but when I copied and pasted, expand the code applies to each cell of the column, it does not work.
Could you please advise if there is any way to do it?
Please see below as the Code that I wrote:
Private Sub Worksheet_Change(ByVal Target As Range)
If [C4] = "C" Then
Sheets("Cells").Visible = True
Else
Sheets("Cells").Visible = False
End If
End Sub
Your urgent assistance is much appreciated