S
stevens
I have an interesting problem. I have some VBA code that contains an "If"
statement. 350 lines of code and comments later there is the closing,
matching "End if" statement. The code in between has two do loops and
numerous "if.....end if" statements, all matched up fine. I keep getting an
"End If block without matching If statement" error message. As I mentioned
before, all Loop statements and all If statements are properly matched with
their ending counterparts. Is there a limitation to how many lines of code
you can have between If then and end if statements? I have looked at this
code til I am blue in the face and cannot find a mismatch. Has anyone had a
similar problem?
Steve
statement. 350 lines of code and comments later there is the closing,
matching "End if" statement. The code in between has two do loops and
numerous "if.....end if" statements, all matched up fine. I keep getting an
"End If block without matching If statement" error message. As I mentioned
before, all Loop statements and all If statements are properly matched with
their ending counterparts. Is there a limitation to how many lines of code
you can have between If then and end if statements? I have looked at this
code til I am blue in the face and cannot find a mismatch. Has anyone had a
similar problem?
Steve