560 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 two 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.
In the example shown in part one of this blog, we want to store the name of our superhero and the rating applied to them somewhere on your computer which is easy to access and use. That somewhere is called a variable.
A variable is a bit like a suitcase, in that it stores something. But there are two big differences: suitcases don't (usually) have names, and they're not restricted to storing just one thing. So if you're the sort of person who names their suitcases and stores just one thing in each, you'll find variables strangely familiar!
Our variable to hold the superhero name.
The variable to hold the rating.
So know we know what variables are (!) - how to create them?
|Parts of this blog|
25 Aytoun Street