Hello
I have the following code that pairs to a drop down on the sheet. The code works when "plate" is selected and when the dropdown is blank but not when "tubes".
I have the following code that pairs to a drop down on the sheet. The code works when "plate" is selected and when the dropdown is blank but not when "tubes".
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If [Amp_performed] = "Plate" Then
Sheets("GF Amp Plate Layout").Visible = True
Range("a8:a33,a39:a64,a70:a95,a101:a126").Font.Color = vbBlack
Else
Sheets("GF Amp Plate Layout").Visible = False
Range("a8:a33,a39:a64,a70:a95,a101:a126").Font.Color = vbWhite
End If
If [Amp_performed] = "Tubes" Then
Sheets("GF Amp Plate Layout").Visible = False
Range("a8:a33,a39:a64,a70:a95,a101:a126").Font.Color = vbWhite
Else
Sheets("GF Amp Plate Layout").Visible = True
Range("a8:a33,a39:a64,a70:a95,a101:a126").Font.Color = vbBlack
End If
If [Amp_performed] = "" Then
Sheets("GF Amp Plate Layout").Visible = False
Range("a8:a33,a39:a64,a70:a95,a101:a126").Font.Color = vbWhite
Else
Sheets("GF Amp Plate Layout").Visible = True
Range("a8:a33,a39:a64,a70:a95,a101:a126").Font.Color = vbBlack
End If
End Sub
Last edited: