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

Recording a macro, adding modules, browsing objects, and variables


Before you get your hands "dirty" with coding in VBA, there are a few things you need to know. These things will help when it comes to coding. In this section, you will learn how to:

  • Record a macro

  • Add modules

  • Browse objects

  • Get some background on declaring variables

We will start with macro recording, a feature which is available in most Office applications.

Recording a macro

A macro, in Office applications, is a synonym for VBA code. In Excel, we can record almost any action we perform (such as mouse clicks and typing), which in turn is registered as VBA code. This can come in handy when we need to discover properties and methods related to an object. Let us now have a look at some ways you can record a macro in Excel. There are two options:

  1. Recording a macro from the status bar.

  2. Recording from the Developer tab.

Option 1 – Recording a macro from the status bar

From the status bar, click on the Record Macro button. If the button is...

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}