I am trying to hide a userform when certain values from a drop down list matching a range of text are selected.
If the dropdown choice contains a different value than what is stored in the range I'd like the userform to be shown.
It is returning a Syntax error, any help would be much appreciated.
If the dropdown choice contains a different value than what is stored in the range I'd like the userform to be shown.
Code:
[B]Sub EXMProceed2_Click()[/B]
[B]Dim CheckFibre As String[/B]
[B]Dim FibreInsertsVBA As String[/B]
[B]CheckFibre = Worksheets("CreateConnectorEXM").range("J10") 'Drop down list[/B]
[B]FibreInsertsVBA = Worksheets("DATA").range("FibreInserts") 'Data Range is named "FibreInserts" via the excel name manager functions[/B]
[B]If CheckCable = ("MM") And CheckFibre <> FibreInsertsVBA Then[/B]
[B]FiberArrangements.Show[/B]
[B] Else[/B]
[B].....[/B]
[B]End If
[/B]
It is returning a Syntax error, any help would be much appreciated.