general
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » General

General

resolvedResolved · Low Priority · Version 2003

replyReply Mon 20 Jul 2009, 13:43Delegate Vishal said...

General

Please explain use of the locals and immediate windows in the VB editor, and provide examples of when you should use them

For upcoming training course dates see: Pricing & availability

replyReply Fri 24 Jul 2009, 11:41Trainer Stephen said...

RE: General

Hi Vishal

Thank you for your question

The Immediate Window is a window in the VBE where you can enter commands and view the contents of variables while you code is in Break mode. The Debug.Print statement can be used anywhere in your code to display messages or variable values in the Immediate Window. It can therefore be used to keep track of the values of variables and is useful for tracking down bugs that arise from logic errors.

The Locals Window is also useful for tracking down logical flaws in a procedure. It displays all the variables in a procedure and their values. Thus it easy to see exactly what the changing value of each variable is as you step through the code.

Regards

Stephen

 

Please browse our web site to find out more about
excel consulting and other Microsoft training courses.

Excel tip:

Adding up rows or columns without seeing formulas

Highlight a column or row and click the Autosum button. This gives you your answer without showing the formula.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard