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: 2
Default strange behaviour - no feedback!

Hi,
I`ve done some rather basic programming in excel and in general I find
vba a useful tool. However, from time to time I run into some problems
that are very annoying because the program is unable to report on what
line of code causes problems. Today, I tried to run a macro that enters
a loop like

for counter = 0 to pi_maxnum

but the code never entered the loop and the program just stopped and
I`m right back in manual control over excel. The solution was to
hardcode the loop like

for counter = 0 to 10

and everything ran fine.

The pi_maxnum was defined as public in another module, I also tried
defining it as public in the module with the sub containing the loop,
to no effect.

I`m no vba expert, someone here can probably point out the problem, but
when the system never even to reports on why nothing happens .. it
should be a law against it. In this case I would excpect a message on
something wrong with the definition of pi_maxnum.

Anyway, if someone cares to share some thoughts on this I`d be glad.

 
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
Strange if(***) behaviour? Excel 2003 - SPB Excel Discussion (Misc queries) 6 August 6th 06 05:34 PM
Strange VBA Behaviour Ricko Excel Programming 0 July 28th 05 07:53 AM
Strange behaviour Edgar Thoemmes Excel Worksheet Functions 1 February 8th 05 03:20 PM
Strange behaviour in VBA Help Michael Singmin Excel Programming 4 June 4th 04 07:06 PM
strange behaviour Patrick Molloy Excel Programming 0 September 4th 03 07:51 AM


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