Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default F8 and Yellow pattern for compile error

Hi,

When I get an error, the offending line in my code would be having a streak
of yellow pattern.

As is my habit, I would make a minor change (I play a game of odd-man-out in
recursive mode with VBA) to the code Line and herein lies my doubt.

a) Sometimes when I make the change I would get the deadly message box
(vbokcancel) something on the following lines "Project needs to be RESET."

b) And rest of the times VBA would be very kind and would allow the change
in the code line, WITHOUT Resetting and I can continue with the code
execution (unless more errors pop up in the same line)


Whats the logic for the above behaviour. Can I predict in what kind of
changes , VBA would reset my project and when it would not.

Please guide me.

Thanks a lot,
Hari
India


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default F8 and Yellow pattern for compile error

Hari,

I see you have got no replies to this, so I will take a shot.

You mention recursive mode. I am not absolutely clear what you mean by this,
but does this mean that your code uses recursion. Are you handling the
recursion exits properly, not choking up the stack?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hari Prasadh" wrote in message
...
Hi,

When I get an error, the offending line in my code would be having a

streak
of yellow pattern.

As is my habit, I would make a minor change (I play a game of odd-man-out

in
recursive mode with VBA) to the code Line and herein lies my doubt.

a) Sometimes when I make the change I would get the deadly message box
(vbokcancel) something on the following lines "Project needs to be RESET."

b) And rest of the times VBA would be very kind and would allow the change
in the code line, WITHOUT Resetting and I can continue with the code
execution (unless more errors pop up in the same line)


Whats the logic for the above behaviour. Can I predict in what kind of
changes , VBA would reset my project and when it would not.

Please guide me.

Thanks a lot,
Hari
India




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default F8 and Yellow pattern for compile error

Hi Bob,

Im sorry, I used *recursion* word as a pun.

I mean I find it very hard to debug the error. So, when-ever there is a
yellow line, I would change a small detail within that ( remember my
yesterday's post regarding "Cleaning up the syntax" where I was at my wit's
end and I provided 3 variations -- a) , b) , c) -- of changes I tried) and
see whether it works. So in effect I keep *permuting* the various possible
*syntaxes*.

Now when Iam playing this *game* sometimes VBA would reset my project and
sometimes its very graceful and allows with the continuation of the rest of
the code.

I wanted to *predict* when VBA would reset and when it wouldnt.

Thanks a lot,
Hari
India

"Bob Phillips" wrote in message
...
Hari,

I see you have got no replies to this, so I will take a shot.

You mention recursive mode. I am not absolutely clear what you mean by
this,
but does this mean that your code uses recursion. Are you handling the
recursion exits properly, not choking up the stack?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hari Prasadh" wrote in message
...
Hi,

When I get an error, the offending line in my code would be having a

streak
of yellow pattern.

As is my habit, I would make a minor change (I play a game of odd-man-out

in
recursive mode with VBA) to the code Line and herein lies my doubt.

a) Sometimes when I make the change I would get the deadly message box
(vbokcancel) something on the following lines "Project needs to be
RESET."

b) And rest of the times VBA would be very kind and would allow the
change
in the code line, WITHOUT Resetting and I can continue with the code
execution (unless more errors pop up in the same line)


Whats the logic for the above behaviour. Can I predict in what kind of
changes , VBA would reset my project and when it would not.

Please guide me.

Thanks a lot,
Hari
India






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default F8 and Yellow pattern for compile error

LOL.

I though odd-man-out was some game that you were writing in VBA, using
recursive routine calls.

Sorry, I can't offer any help here off the top, I think it is one of those
things you need to be standing there to see it happen. Now, if you want to
fly me over to Delhi to take a look ... ;-).

Best of luck

Bob


"Hari Prasadh" wrote in message
...
Hi Bob,

Im sorry, I used *recursion* word as a pun.

I mean I find it very hard to debug the error. So, when-ever there is a
yellow line, I would change a small detail within that ( remember my
yesterday's post regarding "Cleaning up the syntax" where I was at my

wit's
end and I provided 3 variations -- a) , b) , c) -- of changes I tried)

and
see whether it works. So in effect I keep *permuting* the various possible
*syntaxes*.

Now when Iam playing this *game* sometimes VBA would reset my project and
sometimes its very graceful and allows with the continuation of the rest

of
the code.

I wanted to *predict* when VBA would reset and when it wouldnt.

Thanks a lot,
Hari
India

"Bob Phillips" wrote in message
...
Hari,

I see you have got no replies to this, so I will take a shot.

You mention recursive mode. I am not absolutely clear what you mean by
this,
but does this mean that your code uses recursion. Are you handling the
recursion exits properly, not choking up the stack?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Hari Prasadh" wrote in message
...
Hi,

When I get an error, the offending line in my code would be having a

streak
of yellow pattern.

As is my habit, I would make a minor change (I play a game of

odd-man-out
in
recursive mode with VBA) to the code Line and herein lies my doubt.

a) Sometimes when I make the change I would get the deadly message box
(vbokcancel) something on the following lines "Project needs to be
RESET."

b) And rest of the times VBA would be very kind and would allow the
change
in the code line, WITHOUT Resetting and I can continue with the code
execution (unless more errors pop up in the same line)


Whats the logic for the above behaviour. Can I predict in what kind of
changes , VBA would reset my project and when it would not.

Please guide me.

Thanks a lot,
Hari
India








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default F8 and Yellow pattern for compile error

Hi Bob,

I though odd-man-out was some game that you were writing in VBA,...


I wish that I get on that *level* as soon as possible.

You're welcome to Delhi (and my place) anytime.

Thanks a lot,
Hari
India

"Bob Phillips" wrote in message
...
LOL.

I though odd-man-out was some game that you were writing in VBA, using
recursive routine calls.

Sorry, I can't offer any help here off the top, I think it is one of those
things you need to be standing there to see it happen. Now, if you want to
fly me over to Delhi to take a look ... ;-).

Best of luck

Bob




Reply
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
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
Global turn-off of Error Checking - little yellow squares Jim May Excel Discussion (Misc queries) 1 August 18th 05 03:47 PM
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM
Compile error in hidden module error Melissa Zebrowski Excel Programming 3 February 20th 04 01:29 PM


All times are GMT +1. The time now is 08:27 AM.

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

About Us

"It's about Microsoft Excel"