LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 345
Default Finding the "Block If without End If" error

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Error :- "Too Many Cell Formats"...is there a way of finding FoS605 Excel Discussion (Misc queries) 4 June 30th 08 03:23 PM
To block "to "eliminate" of the picture of form, information Isaac[_2_] Excel Programming 0 June 29th 06 03:22 PM
What is causing "Block if without End if" error? davegb Excel Programming 3 September 8th 05 10:29 PM
Need help in excel with "Statement invalid outside Type block. " error Brent[_6_] Excel Programming 3 January 17th 04 03:03 AM
"Run-time error 91: Object variable or With block not set" Snedker Excel Programming 0 January 10th 04 09:37 AM


All times are GMT +1. The time now is 03:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"