Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Excel Programming with VBA Starter

You're reading from  Excel Programming with VBA Starter

Product type Book
Published in Oct 2012
Publisher Packt
ISBN-13 9781849688444
Pages 62 pages
Edition 1st Edition
Languages
Author (1):
Robert F Martin Robert F Martin
Profile icon Robert F Martin

Table of Contents (8) Chapters

Excel Programming with VBA Starter
Credits
www.PacktPub.com
www.PacktLib.PacktPub.com
About the author
About the reviewers
1. Excel Programming with VBA Starter Index

Top features you'll want to know about


In this section, you will learn about some VBA programming features that you will certainly want to know about. Here, you will learn how to work with enumeration, classes, and external libraries.

We will kick off by looking at enumeration.

Enumeration

The first question that might pop into your mind is, "What the heck is enumeration?" As the name suggests, it enumerates something, but what? As a rule of thumb, enumeration is a group of constants. So, supposing you have an object, it is likely that this object has a color property. Therefore, you could have a "Color" group. Then you could enumerate the colors you want to use in your code. This will make life easier when determining which color to use, given that you simply declare the enumerator and choose one of its values when the times comes.

Take a look at the following screenshot:

Here, we have a FileDialog property (which is a member of the Application class) that takes FileDialogType as an argument...

You have been reading a chapter from
Excel Programming with VBA Starter
Published in: Oct 2012 Publisher: Packt ISBN-13: 9781849688444
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}