Solved

Excel 2010 VBA - Question About Immediate Window

Posted on 2013-12-16
3
388 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

730 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