#1   Report Post  
Posted to microsoft.public.excel.misc
Ollie
 
Posts: n/a
Default DeBug

Is there a way that the Debug / End popup can be stopped when there is a
problem with a vba project
  #2   Report Post  
Posted to microsoft.public.excel.misc
Trevor Shuttleworth
 
Posts: n/a
Default DeBug

Use On Error error trapping

Regards

Trevor


"Ollie" wrote in message
...
Is there a way that the Debug / End popup can be stopped when there is a
problem with a vba project



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ollie
 
Posts: n/a
Default DeBug

Not sure what you mean Trevor. Can you be more specific

"Trevor Shuttleworth" wrote:

Use On Error error trapping

Regards

Trevor


"Ollie" wrote in message
...
Is there a way that the Debug / End popup can be stopped when there is a
problem with a vba project




  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default DeBug

What he means is that you should add could to manage the error. For
instance, add a statement at the front of the procedure

On Error Goto this_proc_Errororhandler

and at the end, add a statement

this_proc_Errororhandler:
'add some code to deal with the error.

Other ways are to trap errors as they happen, such as

On Error Resume Next
'some code
If Err.Number < 0 Then
'do something
On Error Goto 0

Best advice? Get a copy of Professional Excel Development by Bullen, Bovey
and Green, it has a good chapter on error handling as well as much other
good stuff.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ollie" wrote in message
...
Not sure what you mean Trevor. Can you be more specific

"Trevor Shuttleworth" wrote:

Use On Error error trapping

Regards

Trevor


"Ollie" wrote in message
...
Is there a way that the Debug / End popup can be stopped when there is

a
problem with a vba project






  #5   Report Post  
Posted to microsoft.public.excel.misc
Ollie
 
Posts: n/a
Default DeBug


Hello Bob
I think I will get that book as this is a bit above my skill level and a
bit of study wont go astray.
Appreciate your advice
Thanks
Regards
Ollie
"Bob Phillips" wrote:

What he means is that you should add could to manage the error. For
instance, add a statement at the front of the procedure

On Error Goto this_proc_Errororhandler

and at the end, add a statement

this_proc_Errororhandler:
'add some code to deal with the error.

Other ways are to trap errors as they happen, such as

On Error Resume Next
'some code
If Err.Number < 0 Then
'do something
On Error Goto 0

Best advice? Get a copy of Professional Excel Development by Bullen, Bovey
and Green, it has a good chapter on error handling as well as much other
good stuff.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Ollie" wrote in message
...
Not sure what you mean Trevor. Can you be more specific

"Trevor Shuttleworth" wrote:

Use On Error error trapping

Regards

Trevor


"Ollie" wrote in message
...
Is there a way that the Debug / End popup can be stopped when there is

a
problem with a vba project






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
Using the fx key to debug formulas Bill Excel Discussion (Misc queries) 1 February 24th 06 04:38 AM
simple (i think) UDF debug help needed Adam Kroger Excel Discussion (Misc queries) 4 December 18th 05 08:11 PM
How do I resolve debug error macro Excel 2000? At least, any lead Excel 2000 Macros debugger Excel Discussion (Misc queries) 5 October 25th 05 08:56 AM
Can i turn off the debug side of Excel? H the Layman Excel Discussion (Misc queries) 1 May 18th 05 02:06 PM
help with debug Rusty New Users to Excel 3 February 2nd 05 03:16 AM


All times are GMT +1. The time now is 12:57 PM.

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"