Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default How to see all variables?

This is likely to be elementary - apologies in advance :)

Is there a command or something I can type in Immediate box to show me what
variables and objects are still loaded?
I don't much believe in my coding and always suspect that I failed to Close
/ Nothing / Unload goods. Experience tells me that I really need this
facility.

I vaguely remember this sort of thing available in Realizer - first tool to
program in Windows I used. Anybody remembers Realizer? It's like Spooky
Tooth or Grand Funk Railroad - excuse my memory lane :)

Regards,
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to see all variables?

Variables are released when they go out of scope and the sub or function
where they are declared ends. If you don't have any global variables, then
you won't have a concern. If you do, then they will still be loaded until
the workbook is closed. There is usually little reason to perform any overt
action against them. They aren't released in any event - the most you can
do is clear the value they hold (exception would be a dynamic array).

Sub Test1()
dim rng as Range
set rng = Range("A1:A10")

set rng = Nothing
' rng still exists in memory - it just has a value of nothing


End Sub

--
Regards,
Tom Ogilvy


"count" wrote in message
...
This is likely to be elementary - apologies in advance :)

Is there a command or something I can type in Immediate box to show me

what
variables and objects are still loaded?
I don't much believe in my coding and always suspect that I failed to

Close
/ Nothing / Unload goods. Experience tells me that I really need this
facility.

I vaguely remember this sort of thing available in Realizer - first tool

to
program in Windows I used. Anybody remembers Realizer? It's like Spooky
Tooth or Grand Funk Railroad - excuse my memory lane :)

Regards,
Paul




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
Sum if 2 variables ksel Excel Discussion (Misc queries) 6 June 18th 09 09:45 AM
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Three Variables George Excel Worksheet Functions 1 July 8th 06 07:47 PM
Using variables . . . Wayne Knazek Excel Discussion (Misc queries) 2 July 6th 06 05:01 PM
Using variables in a name Vispy Excel Discussion (Misc queries) 4 February 22nd 06 01:17 AM


All times are GMT +1. The time now is 04:34 AM.

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"