Hi guys,
Just wondering if it's possible to declare 1 variable for multiple constant or string?
Example, instead of doing:
strVar= "Dog"
strVar2= "Cat"
strVar3="Rat"
If wsData.Cells(1,1) = strVar or wsData.Cells(1,1) = strVar2 or wsData.Cells(1,1) = strVar3 then
'Blabla
End if
Is there a way to declare strVar for all the string, so the code can be as simple as:
If wsData.Cells(1,1) = strVar then
'Bla
End if
Any ideas?
Bookmarks