Hover over VBA variable to get value during execution

B

Brad Yundt

When debugging VBA code in Excel 2000 and later, I find
it quite handy to hold the cursor over a variable to get
its value during code execution. How do I make Excel v.X
do something similar?

I've been sprinkling MsgBox statements throughout my code
as a workaround, but would really prefer to use the hover
feature in combination with F8.
 
J

JE McGimpsey

Brad Yundt said:
When debugging VBA code in Excel 2000 and later, I find
it quite handy to hold the cursor over a variable to get
its value during code execution. How do I make Excel v.X
do something similar?

I've been sprinkling MsgBox statements throughout my code
as a workaround, but would really prefer to use the hover
feature in combination with F8.

That feature isn't implemented in the Mac VBE. In addition to (for me,
in preference to) MsgBoxes, use Debug.Print statements which print the
values you specify to the Immediate window. Or type ?<varname> into the
immediate window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top