Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba courses london - variable

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Variable

vba courses london - Variable

ResolvedVersion Standard

Helen has attended:
Excel VBA Intro Intermediate course

Variable

What is a variable?

Excel VBA Variable

Hi Helen

I trust that you found your excel vba course useful.

A variable is basically a piece of code that allows you to assign a value, that you are able to change. You can then use the value this variable holds in other areas of your code.

for example you could create a variable called animal. Within the code you can then assign a value to it eg cat, dog, rabbit. You could then use this variable an print out the value that it holds.

Hope this helps
David

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

VBA tip:

Count the Rows and Columns in a Selection

If you need to count the number of rows or columns in a worksheet use the following code:

Selection.Rows.Count - Returns the number of rows in the selection

Selection.Columns.Count - Returns the number of columns in the selection

Selection.CurrentRegion.Rows.Count - Returns the number of rows in the current region of the selection

View all VBA hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.