Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Dump of all variable contents

dan,

No, you can't get all your variables. The normal way to determine what goes
wrong is to use something like

Sub ErrorExample()
Dim strError As String

On Error GoTo MyError
'Typically, strError is set before each section
'If an error occurs, strError is returned

strError = "Error in Counting Toes"
'Count your toes code here
......

strError = "Error in Examining Bellybutton"
'Examine Bellybutton code here
.....

Exit Sub

myError:
Msgbox strError

End Sub

HTH,
Bernie
MS Excel MVP

"dan" wrote in message
...
Is there a collection or something I can enumerate to dump the contents of

all variables when an error occurs?

I am sending this project out into the world and I need some way of

determining the current state of things when it blows up.

Thanks



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
insert contents of variable cell address Charlie@ParkViewTerrace Excel Discussion (Misc queries) 1 June 30th 09 11:28 PM
How to Dim the contents of a variable in running procedure? [email protected] Excel Discussion (Misc queries) 5 May 1st 07 12:34 AM
Multiple If's, one variable. And filename as cell contents steve Excel Programming 0 September 10th 03 07:36 PM
Multiple If's, one variable. And filename as cell contents hugh jass Excel Programming 0 September 10th 03 07:18 PM
Multiple If's, one variable. And filename as cell contents Dan E[_2_] Excel Programming 0 September 10th 03 07:12 PM


All times are GMT +1. The time now is 01:32 AM.

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"