Introduction

The Excel 2007 VBA Programmer's Reference is a beginner-intermediate level guide to using VBA with Excel. It starts with a VBA Primer, which is applicable to the strong beginner and those who have programmed before but are new to VBA. It goes on to explain how to use VBA to control the main parts of Excel, from manipulating Ranges to creating Addins. It then introduces some more advanced topics, from creating Addins using Visual Basic to programming with the Windows API. The book ends with three large appendices that list all the objects in the Excel, VBE and Office object models, with their properties, methods and many code samples of their usage.

Chapter 14 - RibbonX (pdf) is provided as a sample chapter, explaining how to control the Excel 2007 Ribbon using VBA. Reproduced here with the kind permission of Wrox Press.

All four authors are professional Excel developers who run our own companies developing Excel-based applications for clients ranging from individuals to the largest multinational corporations.

This edition has been comprehensively updated for Excel 2007, including many completely new and rewritten chapters, explaining how to manipulate the Excel 2007 XML file formats, how to master the Ribbon and all the new external data and security enhancements.

Table of Contents

  Title
Intro Introduction to Excel
1 Primer in Excel VBA
2 The Application Object
3 Workbooks and Worksheets
4 Using Ranges
5 Using Names
6 Filtered Lists - rewritten
7 Pivot Tables
8 Generating Charts - rewritten
9 Event Procedures
10 Adding Controls
11 Office Files and Folders
12 Using XML and the Office XML file formats - new chapter
13 Userforms
14 RibbonX - new chapter
15 Command Bars
16 Class Modules
17 Add-Ins
18 Automation Add-Ins and COM Add-Ins
19 Interacting with Other Office Applications
20 Data Access with ADO - rewritten
21 Managing External Data - new chapter
22 The Trust Center and Document Security - new chapter
23 Interacting with OLAP Data Sources - new chapter
24 Excel and the Internet
25 International Issues
26 Programming the VBE
27 Programming with the Windows API
A Excel 2007 Object Model - rewritten
B VBE Object Model
C Office 2007 Object Model - rewritten
Files Files available for download from www.wrox.com:
  • Numerous examples of all the topics covered in the book
  • All three object models, in easily-searchable help file format

Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries