Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default Return Procedure Name

I have my code append to a text file if there is an error. But the
results are vague. I'm just having it append the Err.Description to
the file. Err.Source doesn't tell me much. Is there a way I can also
append the procedure name where the error occured? Even better would
be the procedure name AND line number. But.. one can dream, I suppose.

Any suggestions or related help appreciated.

tod
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Return Procedure Name

The procedure name is not available as far as I know, so you would have to
manage it yourself. One way would be to have a global public variable, and
set that whenever a procedure is entered.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"tod" wrote in message
m...
I have my code append to a text file if there is an error. But the
results are vague. I'm just having it append the Err.Description to
the file. Err.Source doesn't tell me much. Is there a way I can also
append the procedure name where the error occured? Even better would
be the procedure name AND line number. But.. one can dream, I suppose.

Any suggestions or related help appreciated.

tod



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Return Procedure Name

Look at Stephen Bullen's information on ERL

http://tinyurl.com/2fh2u

and on his central error routine. Read the entire thread.

--
Regards,
Tom Ogilvy

"tod" wrote in message
m...
I have my code append to a text file if there is an error. But the
results are vague. I'm just having it append the Err.Description to
the file. Err.Source doesn't tell me much. Is there a way I can also
append the procedure name where the error occured? Even better would
be the procedure name AND line number. But.. one can dream, I suppose.

Any suggestions or related help appreciated.

tod



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
sub procedure Jim Excel Discussion (Misc queries) 2 November 12th 09 02:52 PM
Stop a Procedure from another procedure Ayo Excel Discussion (Misc queries) 1 October 30th 08 01:42 AM
Data return from SQL Stored procedure... Jonathon Shull Excel Discussion (Misc queries) 0 July 29th 08 04:25 PM
Procedure is too big Frank Situmorang Excel Worksheet Functions 2 May 2nd 07 05:06 AM


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