Solved

Excel 2010 VBA - Question About Immediate Window

Posted on 2013-12-16
3
397 Views
Last Modified: 2013-12-16
I'm looking for my variables in the immediate window and I see one in the Comments section  and another in the Tab section.  
What is the logic behind the placement of variables in different locations?  This doesn't make sense (see graphics).

err
err2
0
Comment
Question by:brothertruffle880
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points
ID: 39721107
Hi,

...What is the logic behind the placement of variables in different locations?  This doesn't make sense (see graphics).

The Expression list is displayed in an ascending alphabetic order.

Hence, "CommissionAmt" & "TotalSales" appear in different locations in the list.

BFN,

fp.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39721242
Further to what is said above, these are not IN the Comments section or Tab section. These are below those two. Comments and Tab section have not been expanded.
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 39721360
...Comments and Tab section have not been expanded.

Yes, I saw that from the image you provided.  I just thought you were mistaken.

The two variables, "CommissionAmt" & "TotalSales" must be defined (declared using a Dim statement, or similar) as variables within the module you are within when watching the 'Me' object.

Have I not answered your question already about the placement of the variables within the (sorted) list?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question