Re: Excel automation
From: Michelle (anonymous_at_discussions.microsoft.com)
Date: 02/11/04
- Next message: dule: "SaveCopyAs cannot access opened file?"
- Previous message: Steve Chatham: "Re: Macro to load on open"
- In reply to: Tom Ogilvy: "Re: Excel automation"
- Next in thread: Tushar Mehta: "Re: Excel automation"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 11 Feb 2004 09:01:12 -0800
Thanks Tom
I don't think I have any unqualified references in the way of your example as any excel objects i use are preceded by xlapp or wbroster(which was created using xlapp). However, I am not entirely sure that I have cleared all references to all objects. Is there an easy way to see the value of the variables just before (say at the last line of code) code stops running. I have many excel object variables of all different scopes. I have tried using watches but obviously proc level variables are not defined in context at the last line of my code if they are in a different procedure.
I am wondering if the only way is to add watches to all variables and step through code line by line (it is very long) and check that all variables are set to nothing before they go out of scope. Is this what you would suggest. Or perhaps i could step through code and use locals window?
Just one more question, would passing these objects as args to other subs/functions create another reference to them?
Thanks for your help
Michelle
- Next message: dule: "SaveCopyAs cannot access opened file?"
- Previous message: Steve Chatham: "Re: Macro to load on open"
- In reply to: Tom Ogilvy: "Re: Excel automation"
- Next in thread: Tushar Mehta: "Re: Excel automation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|