LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default What are my variables ... ?

There is no quick way to see a list of all of the variables. The compiler
will not make that distinction until run time when it will create all of your
variables on the fly. I am with Rich... Add the Option Explicit and then hit
Debug - Compile. On the up side you learned to alway declare you variables
even in small projects. It is a good thing to learn.
--
HTH...

Jim Thomlinson


"DJB" wrote:


Hi Richz

Thanks for your answer. I know it's a bad thing which is why I want to
start declaring them.

Using the Option Explicit line was something I considered, but with the
number of variables I have this will take some time because when you do
a check the code always stops at the first undeclared variable,
irrespective of where the cursor is. I'd have to go back, declare it,
run the check again etc. I just wondered if there is a quicker way.

Strangely enough, I've declared all the variables in my functions, so
they're OK.

DJB


--
DJB
------------------------------------------------------------------------
DJB's Profile: http://www.excelforum.com/member.php...o&userid=21221
View this thread: http://www.excelforum.com/showthread...hreadid=384286




 
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
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
Too many variables? elite Excel Worksheet Functions 2 May 19th 06 10:26 PM
Variables Phil Excel Programming 1 April 15th 05 04:39 PM
Using variables in RCs Mike D. Excel Programming 2 March 1st 05 10:53 PM
Looking up two variables Fish Excel Programming 1 February 11th 05 05:59 PM


All times are GMT +1. The time now is 08:19 PM.

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"