Hi,
I have the following line of VBA code.
char_first_3 = Mid(ThisWorkbook.Worksheets("test").Range("A" & j + 1), var_1 - 3, 1)
the value of variable char_first_3 is " ".
However when I test for it in the following lines of code:
ElseIf char_first_3 = " " Then
Debug.Print "char_first_3 is a space"
The test char_first_3 = " " came out as false. What am I missing?
I have the following line of VBA code.
char_first_3 = Mid(ThisWorkbook.Worksheets("test").Range("A" & j + 1), var_1 - 3, 1)
the value of variable char_first_3 is " ".
However when I test for it in the following lines of code:
ElseIf char_first_3 = " " Then
Debug.Print "char_first_3 is a space"
The test char_first_3 = " " came out as false. What am I missing?