I've found much on how to use a variable in a formula, but how if possible do I use a formula for my variable?
As an example, in B5 I have
The reason is because I plan on using
Another reason why I want to assign it to a String is because I plan on deleting the B column and will need to use the String after deleting the column.
I also tried
As an example, in B5 I have
83a West Coast
. I want my string variable to be =LEFT(B5,2)
The reason is because I plan on using
Select Case
.
VBA Code:
Dim strArea As String
strArea = Sheets("Dealer Status").Range("Left(B5,2)")
Range("B:B").Delete
Select Case strArea
Case 83
Range("C2") = "00"
End Select
Another reason why I want to assign it to a String is because I plan on deleting the B column and will need to use the String after deleting the column.
I also tried
VBA Code:
Dim strArea As String
strArea = Sheets("Dealer Status").Range("B5") = "=Left(B5,2)"
Range("B:B").Delete
Select Case strArea
Case 83
Range("C2") = "00"
End Select