Posted to microsoft.public.excel.programming
|
|
Finding the "Block If without End If" error
Don -
Thanks much. Usually tho', since I really like to indent for readability,
it would be rare that an If ..... then .....elseif .....then else ......
end if would fit on one line, but I'll keep the thought.
--
Neal Z
"Don Guillett" wrote:
In addition, you can make it ONE line so there is no "end if". If too long,
use the continuation character after a space ie:
if xxxxxxxxxx _
--
Don Guillett
SalesAid Software
"Neal Zimm" wrote in message
...
Hi -
It's been a while since I got this error, and eventually I found it. My
steps to find it are below, but do y'all have any other tips/techniques?
The sub was pretty large with a lot of IF ... Then Elseif Else logic.
Thanks.
1. Code most recently changed
2. Comment out chunks of it, compile until error goes away
3. Find in last commented out section via searching for "end if", fix,
remove commented out code, recompile.
--
Neal Z
|