564 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owls only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Variables and Constants in Excel Visual Basic
Part one of an eight-part series of blogs
This blog explains the nuts and bolts of Excel VBA variables, including how to declare them, how to set their scope and all sorts of other tips and tricks. The blog also covers constants in Excel macros.
This blog introduces and explains the concept of variables. Our example is to do with the following spreadsheet:
When you fill in the name of your superhero and give him (or her) a rating, you can then click on the button to run a macro to record this vote.
When you click on the RECORD VOTE button shown above, Excel will add it to the list of votes:
The list of votes cast so far.
With this example in mind, let's first find out what a variable actually is.
|Parts of this blog|
25 Aytoun Street