Hi all,
I'm trying to rub my sub, however, I'm getting a "End if without block if" error and directs me to the below. The if is tens of lines long so I don't want to post the whole thing. This is basically what it looks like:
If InStr(1, ActiveCell.Value, "(", vbTextCompare) Then
<Block of Code>
End If
My first instinct is that I didn't close something in the block of code breaking the connection between the "IF" and "END IF", but I'm new so I want to make sure there's nothing wrong with the first line here (first time using InStr) in an if statement. Can someone confirm the first line was written correctly?
I'm trying to rub my sub, however, I'm getting a "End if without block if" error and directs me to the below. The if is tens of lines long so I don't want to post the whole thing. This is basically what it looks like:
If InStr(1, ActiveCell.Value, "(", vbTextCompare) Then
<Block of Code>
End If
My first instinct is that I didn't close something in the block of code breaking the connection between the "IF" and "END IF", but I'm new so I want to make sure there's nothing wrong with the first line here (first time using InStr) in an if statement. Can someone confirm the first line was written correctly?