Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

How to stop Locals window from constantly collapsing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Garth Robbins - 11 Feb 2005 20:44 GMT
Could anyone who uses the Locals window to track their variables please let
me know how to keep the lines in the window (each starting with the + sign)
from collapsing and hiding my variables everytime VBA jumps to a different
part of my code? I'm guessing it happens because I have multiple procedures
and they collapse every time you return to a different sub.

Thanks,
Garth
Perry - 06 Mar 2005 19:55 GMT
The variables go out of scope. They're not in memory/they're dead.

The only thing you can do is to broaden the scope of your variables.
Declare them with a public scope
Once the code executes wihout bugs and yr satisfied, you can go back
to declare the variables within the routines where they belong,
so as to save yourself  precious resources.

Krgrds,
Perry

> Could anyone who uses the Locals window to track their variables please let
> me know how to keep the lines in the window (each starting with the + sign)
[quoted text clipped - 4 lines]
> Thanks,
> Garth
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.