D
deutz
Hi and thanks in advance.
I have some code where I would like to insert a string variable tha
holds an operator which will be either = or <>
The InStr line in the code below results in a Type Mismatch error ...
Code
-------------------
If some condition then
strOperator = "<>"
Else
strOperator = "="
End If
If InStr(1, rng.Value, "ZAC") & strOperator & 0 Then
I have some code where I would like to insert a string variable tha
holds an operator which will be either = or <>
The InStr line in the code below results in a Type Mismatch error ...
Code
-------------------
If some condition then
strOperator = "<>"
Else
strOperator = "="
End If
If InStr(1, rng.Value, "ZAC") & strOperator & 0 Then