Excel VBA in easy steps, 3rd Ed
eBook - ePub

Excel VBA in easy steps, 3rd Ed

Mike McGrath

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Excel VBA in easy steps, 3rd Ed

Mike McGrath

Book details
Book preview
Table of contents
Citations

About This Book

Excel VBA in easy steps neatly demonstrates VBA (Visual Basic for Applications) Macro programming in a clear and concise manner, so you can get more from the popular Microsoft Excel spreadsheet application. Areas covered include:

  • Recording and editing Macros
  • Creating your own Macro programs
  • Coding with the VBA language
  • Responding to Worksheet events
  • Programming Excel procedures
  • Making 'DataForms' for data editing
  • Producing 'UserForms' for data entry
  • Displaying dynamic Charts
  • Sharing your Excel apps to impress your colleagues!

Whether you're upgrading to Excel 2019, exploring Excel in the Office 365 suite, or new to the Macro programming concept, use this guide to learn the key features constructively and get more out of Microsoft Excel ā€“ in easy steps!

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Excel VBA in easy steps, 3rd Ed an online PDF/ePUB?
Yes, you can access Excel VBA in easy steps, 3rd Ed by Mike McGrath in PDF and/or ePUB format, as well as other popular books in Computer Science & Microsoft Programming. We have over one million books available in our catalogue for you to explore.

Information

1
Getting started
Welcome to the exciting world of Excel VBA ( Visual Basic for Applications). This chapter demonstrates how to create a VBA macro for Excel workbooks.
Introducing Excel VBA
Recording a macro
Viewing macro code
Testing a macro
Editing macro code
Referencing relatives
Saving macros
Trusting macros
Summary
Introducing Excel VBA
Visual Basic for Applications (VBA) is the programming language that is built into the Excel spreadsheet application and other Microsoft Office applications. It extends Excel so it can perform tasks that canā€™t be done with standard Excel tools, and provides the capability to automate many routine tasks.
The examples in this book assume the reader is an experienced Excel user who can accomplish these fundamental operations:
ā€¢Create workbooks and insert worksheets
ā€¢Navigate around a workbook and worksheet
ā€¢Use the Excel Ribbon interface
ā€¢Name cells and ranges
ā€¢Use the Excel worksheet functions
All examples are demonstrated using Excel 2019, although most examples are also applicable to earlier versions of Excel.
image
If youā€™re just starting out with Excel, please refer to our companion book Excel 2019 in easy steps.
Enabling VBA
Before you can get started using the capabilities of VBA, it must first be enabled in your Excel installation:
image
Launch Excel, then choose to open a Blank workbook
image
image
When the workbook opens, choose the File item on the Excel Ribbon
image
image
All the examples in this book are available for free download at www.ineasysteps.com/resource-centre/downloads
image
Next, select the Options item ā€“ to open the ā€œExcel Optionsā€ dialog box
image
image
In the Excel Options dialog, choose the Customize Ribbon item on the left-hand pane
image
image
Now, check the Developer option box in the right-hand pane
image
Click the OK button to apply the change and to close the Excel Options dialog box
image
See that a Developer tab has been added to the Ribbon
image
image
Choose the Developer tab to see a Visual Basic button in the Ribbonā€™s ā€œCodeā€ group ā€“ VBA is now enabled
image
You can also open the Excel Options dialog box by pressing the ...

Table of contents

  1. Cover
  2. Title
  3. Copyright
  4. Contents
  5. 1 Getting started
  6. 2 Writing macros
  7. 3 Storing values
  8. 4 Performing operations
  9. 5 Making statements
  10. 6 Executing procedures
  11. 7 Employing functions
  12. 8 Recognizing events
  13. 9 Opening dialogs
  14. 10 Providing UserForm dialogs
  15. 11 Developing apps
Citation styles for Excel VBA in easy steps, 3rd Ed

APA 6 Citation

McGrath, M. (2019). Excel VBA in easy steps, 3rd Ed ([edition unavailable]). In Easy Steps Limited. Retrieved from https://www.perlego.com/book/3016316/excel-vba-in-easy-steps-3rd-ed-pdf (Original work published 2019)

Chicago Citation

McGrath, Mike. (2019) 2019. Excel VBA in Easy Steps, 3rd Ed. [Edition unavailable]. In Easy Steps Limited. https://www.perlego.com/book/3016316/excel-vba-in-easy-steps-3rd-ed-pdf.

Harvard Citation

McGrath, M. (2019) Excel VBA in easy steps, 3rd Ed. [edition unavailable]. In Easy Steps Limited. Available at: https://www.perlego.com/book/3016316/excel-vba-in-easy-steps-3rd-ed-pdf (Accessed: 15 October 2022).

MLA 7 Citation

McGrath, Mike. Excel VBA in Easy Steps, 3rd Ed. [edition unavailable]. In Easy Steps Limited, 2019. Web. 15 Oct. 2022.