I had changed them to multi-line statments and then the "Else without if" error went away. I just tried changing them back into one-liners, and the error came back.
It is looking more like there is somthing funny with using the one line IF statments.
Joe Dunfee
I am using the Sendkeys command to control a non-VBA program right now. However, I've seen people comment that this is not the recommended method if the other program is VBA enabled.
When I try to use the prefered method, I use Tools/References menu to give VBA the ability to use commands...
I do the indenting stuff, but of course, it is prone to human omissions. Thanks, PHV, for the link to the Indenter utility - that is exactly what I've been looking for.
---
Zathras said;
>The error is "Else without If" so you conclude you have
>a missing or extra "END IF" statement? So you...
I have some VBA code where I get an "Else without If" compile error. So, there is probably a missing,or extra END IF statement somewhere. But, I can't track it down. Is there any trick to help do this? It is not a lot of code, and I have tried searching for all occurances of "if", to no...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.