Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Keeping track of Global variables

If I declare a Global variable, then I believe I'm
correct in saying that it will not be displayed in the
Locals window.

If so, then when debugging, how best to keep track
of its' value, please?

Regards.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Keeping track of Global variables

Hi Stuart,

If I declare a Global variable, then I believe I'm
correct in saying that it will not be displayed in the
Locals window.

If so, then when debugging, how best to keep track
of its' value, please?


You can expand the tree of the entire project by clicking the plus sign
to the left of it (in the locals window), so it shows you all of the
projects objects and global variables. Or you can of course add a watch
to a few variables by rightclicking them and selecting add watch.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Keeping track of Global variables

They appeared in the locals window for me.

--
Regards,
Tom Ogilvy

"Stuart" wrote in message
...
If I declare a Global variable, then I believe I'm
correct in saying that it will not be displayed in the
Locals window.

If so, then when debugging, how best to keep track
of its' value, please?

Regards.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 413
Default Keeping track of Global variables

Many thanks.

Regards.

"Jan Karel Pieterse" wrote in message
...
Hi Stuart,

If I declare a Global variable, then I believe I'm
correct in saying that it will not be displayed in the
Locals window.

If so, then when debugging, how best to keep track
of its' value, please?


You can expand the tree of the entire project by clicking the plus sign
to the left of it (in the locals window), so it shows you all of the
projects objects and global variables. Or you can of course add a watch
to a few variables by rightclicking them and selecting add watch.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004


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
Create Global Variables in a module Bruce Excel Programming 1 June 1st 04 07:55 AM
Global variables cleared by forms? Stu[_33_] Excel Programming 4 February 29th 04 04:33 PM
Global Variables using User Forms Steve[_53_] Excel Programming 4 January 31st 04 02:38 AM
Global Variables Not Accessible John Baker Excel Programming 5 November 28th 03 01:23 AM
Declaring Global Variables skmr3 Excel Programming 1 July 14th 03 05:54 AM


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