J
jhrBanker
I'm trying to check for multiple values in an IF statement in vba, but I'm
receiving error messages:
If Mid(InputString, 54, 3) IN('070', '111', '305', '345', '456') Then
Statement1
Else
Statement2
End If
I've tried double-quotes in place of single-quotes, but that didn't work.
Any help will be appreciated.
receiving error messages:
If Mid(InputString, 54, 3) IN('070', '111', '305', '345', '456') Then
Statement1
Else
Statement2
End If
I've tried double-quotes in place of single-quotes, but that didn't work.
Any help will be appreciated.