Trying to get a macro to do the same function in multiple sheets and I was thinking I could use this sort of code to select the data I wanted:
Sub Foo
Dim OtherStuff As Things
Dim Thing1 as Variant
Thing1 = "a" Or "b" Or "c"
'more things
If cell.value = Thing1 Then
Do stuff
End If
Next Cell
End Sub
I keep getting hit with the good ol' happytime "Run-time error '13': Type Mismatch".
Am I trying to do something that variant won't do? Is there a way to do it that I just haven't learned yet? I've looked around a good bit and haven't found much. Thanks for the help!