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: 224
Default Random phantom breakpoints and random bogus compile errors

We've been getting some strange errors on an Excel VBA project:

On random computers, it stops on random lines as if at a breakpoint,
but there is no breakpoint there; in fact it sometimes happens when a
non-programmer just opens the Excel file and clicks a control to run a
macro. Since VBA doesn't save breakpoints, it obviously isn't a real
breakpoint.

It isn't stopping on an error in those instances, because once it
stops like that, it will happily proceed without error if you simply
press F5.


On the same project, we've also been getting random bogus compile
errors, as if a referenced variable, form, etc. did not exist. Once it
even did it on Excel VBA's built-in Right function, as if Excel VBA's
Right function did not exist. But if we copy the workbook to another
computer, or try again later on the same computer, it runs without
error.


I'm guessing workbook corruption, but is there anything else I should
be looking at too?

Here's what I tried just now:
-- Copied all worksheets to new workbook.
-- Added the required references to the new workbook.
-- For each module and class module, copied text of module into
new module.
-- Copied code behind workbook module.
-- Copied all forms.

I'm doing most of the development in Excel 2007, and users are mixed
between Excel 2007 and 2003. On previous projects, I've also seen the
random phantom breakpoint problem on a project done only in Excel
2003.

Any other suggestions?


Thanks,

Greg
 
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 opening a "phantom" worksheet at random times lbfries Excel Discussion (Misc queries) 0 October 6th 05 06:06 PM
Non-random numbers generated by excel's data analysis random gener Allie Excel Worksheet Functions 10 September 17th 05 06:19 AM
Non-random numbers generated by excel's data analysis random gener Harlan Grove Excel Discussion (Misc queries) 2 September 13th 05 04:06 PM
How do I find random number in list of random alpha? (Position is. jlahealth-partners Excel Discussion (Misc queries) 0 February 8th 05 05:31 PM
random VBA errors Chuck[_6_] Excel Programming 1 October 2nd 03 01:46 AM


All times are GMT +1. The time now is 08:09 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"