Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Using 'On Error'

Apparently the Excel IDE over-rides the 'On Error' capability.
Is there an Excel environment where it doesn't?
i.e. can you compile a macro and run it faster?

In any case, I'm doing some runtime stuff that seems to need error
trapping.

e.g. reading the name of a Range where it doesn't have one.
and creating Ranges from user info that might be invalid.




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Using 'On Error'

Not sure what you mean by "over-rides", can you give a code example?

Tim


"peter" wrote in message
...
Apparently the Excel IDE over-rides the 'On Error' capability.
Is there an Excel environment where it doesn't?
i.e. can you compile a macro and run it faster?

In any case, I'm doing some runtime stuff that seems to need error
trapping.

e.g. reading the name of a Range where it doesn't have one.
and creating Ranges from user info that might be invalid.




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Using 'On Error'


Hi Tim,

Thanks for replying.

I tried 2 kinds of 'On Error'
e.g.
Application.Volatile
and
On Error Resume Next
or
On Error Goto aMsgBox
but they were ignored,
i.e. the IDE gave me the normal choice
of Ending or Debugging.

I put the 'On Error' immediately before
the buggy statement.

I tried i = i/0 for example, as a new Sub.

Peter

Using 'On Error'
From: Tim Williams

Not sure what you mean by "over-rides", can you give a code example?

Tim



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Using 'On Error'

As far as I know Application.Volatile doesn't have antything to do
with error handling.

Is "aMsgBox" a line label?

Make sure you haven't checked "break on all errors" in the VBE under
ToolsOptionsGeneral Error Trapping

Tim.


"peter" wrote in message
...

Hi Tim,

Thanks for replying.

I tried 2 kinds of 'On Error'
e.g.
Application.Volatile
and
On Error Resume Next
or
On Error Goto aMsgBox
but they were ignored,
i.e. the IDE gave me the normal choice
of Ending or Debugging.

I put the 'On Error' immediately before
the buggy statement.

I tried i = i/0 for example, as a new Sub.

Peter

Using 'On Error'
From: Tim Williams

Not sure what you mean by "over-rides", can you give a code example?

Tim



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Using 'On Error'

Make sure you haven't checked "break on all errors" in the VBE under
ToolsOptionsGeneral Error Trapping

YES!

This looks exactly what I need to change.

Thanks a lot.

Peter.




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM
Code Error - Run Time Error 5 (Disable Cut, Copy & Paste) Tim[_36_] Excel Programming 4 April 23rd 04 02:53 AM


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