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

Quick start – VBA programming


Now that you have the basic understanding about VBA (recording a macro, adding modules, browsing objects, and declaring variables), it is time to get to work.

In this section you will learn how to:

  • Use loops

  • Dimension and instantiate objects

  • Create sub routines and user-defined functions

Working with loops

You will start your programming trip down the VBA lane by learning a bit about loops. Loops allow you to repeat a set of instuctions until a predetermined condition changes or a criterion is met.

Loops are extremely important, so you should study and practice this section carefully. You will now be introduced to different looping methods. We will start with For-Next loops.

Method 1 – For-Next loops

If you need to count something or you need to loop through a series of predetermined elements within a given set, then you should look no further. This is because once you specify the start and end values and the loop takes place, the counter starts to run. Suppose that...

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 €14.99/month. Cancel anytime}