This title is not currently available for purchase
Sorry, this item is not available in
Image not available for
Image not available

Excel 2007 VBA Programmer's Reference [Kindle Edition]

Stephen Bullen , Rob Bovey , John Green , Michael Alexander
3.9 out of 5 stars  See all reviews (14 customer reviews)

Pricing information not available.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your email address or mobile phone number.


Amazon Price New from Used from
Kindle Edition $22.99  
Paperback $29.16  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

This book is aimed squarely at Excel users who want to harness the power of the VBA language in their Excel applications. At all times, the VBA language is presented in the context of Excel, not just as a general application programming language.

The book is loosely divided into three sections:

  • Primer (Chapter 1)
  • Working with Specific Objects (Chapters 2-27)
  • Object Model References (Appendices A-C)

The Primer has been written for those who are new to VBA programming and the Excel object model. It introduces the VBA language and the features of the language that are common to all VBA applications. It explains the relationship between collections, objects, properties, methods, and events and shows how to relate these concepts to Excel through its object model. It also shows how to use the Visual Basic Editor and its multitude of tools, including how to obtain help.

The middle section of the book takes the key objects in Excel and shows, through many practical examples, how to go about working with those objects. The techniques presented have been developed through the exchange of ideas of many talented Excel VBA programmers over many years and show the best way to gain access to workbooks, worksheets, charts, ranges, and so on. The emphasis is on efficiency—that is, how to write code that is readable and easy to maintain and that runs at maximum speed. In addition, the chapters devoted to accessing external databases detail techniques for accessing data in a range of formats.

The final four chapters of the book address the following advanced issues: linking Excel to the Internet, writing code for international compatibility, programming the Visual Basic Editor, and how to use the functions in the Win32 API (Windows 32-bit Application Programming Interface).

Finally, the appendices are a comprehensive reference to the Excel 2007 object model, as well as the Visual Basic Editor and Office object models. All the objects in the models are presented together with all their properties, methods, and events.

Editorial Reviews

From the Back Cover

Get ready to take your Excel applications to the next level by harnessing the power of the VBA language. This comprehensive resource will help you gain more control over your spreadsheets by using VBA while also showing you how to develop more dynamic Excel applications for other users. From introductory concepts to advanced developer topics, it guides you through every aspect of Excel 2007, including the Ribbon and the XML file formats.

In order to master all of the new features of this program, you'll find an introduction to VBA and details on how to use it to enhance Excel. You'll then learn how to work with the key objects and uncover the best ways to gain access to workbooks, worksheets, charts, and more. And you'll find out how to write code for international compatibility, program the Visual Basic Editor, and use the functions in the Win32 API, which will expand your Excel VBA programming skills.

What you will learn from this book

  • How to write code that is readable, easy to maintain, and runs at maximum speed
  • Tips for utilizing the Visual Basic® Editor and its multitude of tools

  • Techniques for accessing data in a range of formats

  • Ways to set up your applications and convert them to add-ins

  • How to manipulate the Office XML file formats

  • A thorough explanation of RibbonX

  • Best practices for managing external data and using OLAP data sources

  • Methods for effectively debugging your application

  • Tips for packaging and distributing customized applications to other users

Who is this book for?

This book is for Excel users and programmers from beginning to advanced. You should have a reasonable working knowledge of Excel and a full installation of the software.

Wrox Programmer's References are designed to give the experienced developer straight facts on a new technology, without hype or unnecessary explanations. They deliver hard information with plenty of practical examples to help you apply new tools to your development projects today.

About the Author

John Green lives and works in Sydney, Australia, as an independent computer consultant, specializing in Excel and Access. He has 35 years of computing experience, a Chemical Engineering degree, and an MBA.
He wrote his first programs in FORTRAN, took a part in the evolution of specialized planning languages on mainframes and, in the early ‘80s, became interested in spreadsheet systems, including 1-2-3 and Excel.
John established his company, Execuplan Consulting, in 1980, specializing in developing computerbased planning applications and in training. He has led training seminars for software applications and operating systems both in Australia and overseas.
John has had regular columns in a number of Australian magazines and has contributed chapters to a number of books including Excel Expert Solutions and Using Visual Basic for Applications 5. He also co-authored Professional Excel Development with Stephen Bullen and Rob Bovey.
From 1995 to 2005 he was accorded the status of MVP (Most Valuable Professional) by Microsoft for his contributions to the CompuServe Excel forum and MS Internet newsgroups.
John Green contributed the Introduction, Chapters 1–11, 13, 15–17, and 19 to this book.

Stephen Bullen lives in Woodford Green, London, England, with his partner Clare, daughter Becky, and their dogs, Fluffy and Charlie. He has two other daughters, Jane and Katie, from his first marriage.
A graduate of Oxford University, Stephen has an MA in Engineering, Economics, and Management, providing a unique blend of both business and technical skills. He has been providing Excel consulting and application development services since 1994, originally as an employee of Price Waterhouse Management Consultants and later as an independent consultant trading under the names of Business Modelling Solutions Limited and Office Automation Limited. Stephen now works for Barclays Capital in London, developing trading systems for complex exotic derivative products.
The Office Automation web site,, provides a number of helpful and interesting utilities, examples, tips and techniques to help in your use of Excel and development of Excel applications.
As well as co-authoring previous editions of the Excel VBA Programmer’s Reference, Stephen co-authored Professional Excel Development.
In addition to his consulting and writing assignments, Stephen actively supports the Excel user community in Microsoft’s peer-to-peer support newsgroups and the Daily Dose of Excel blog. In recognition of his knowledge, skills and contributions, Microsoft has awarded him the title of Most Valuable Professional each year since 1996.
Stephen Bullen contributed Chapters 14, 18, 24–27, and Appendix B to this book.

Rob Bovey is president of Application Professionals, a software development company specializing in Microsoft Office, Visual Basic, and SQL Server applications. He brings many years’ experience creating financial, accounting, and executive information systems for corporate users to Application Professionals. You can visit the Application Professionals web site at
Rob developed several add-ins shipped by Microsoft for Microsoft Excel and co-authored the Microsoft Excel 97 Developers Kit and Professional Excel Development. He earned his Bachelor of Science degree from The Rochester Institute of Technology and his MBA from the University of North Carolina at Chapel Hill. He is a Microsoft Certified Systems Engineer (MCSE) and a Microsoft Certified Solution Developer (MCSD). Microsoft has awarded him the title of Most Valuable Professional each year since 1995.
Rob Bovey contributed Chapters 20–22 to this book.

Michael Alexander is a Microsoft Certified Application Developer (MCAD) with more than 14 years’ experience consulting and developing office solutions. He parlayed his experience with VBA and VB into a successful consulting practice in the private sector, developing middleware and reporting solutions for a wide variety of industries. He currently lives in Frisco, Texas, where he serves as a Senior Program Manager for a top technology firm. Michael is the author of several books on Microsoft Access and Excel, and is the principle behind DataPig Technologies, where he shares Access and Excel knowledge with the Office community.
Michael Alexander contributed Chapters 12 and 23 and Appendices A and C to this book.

Product Details

  • File Size: 31633 KB
  • Print Length: 1176 pages
  • Publisher: Wrox; 1 edition (April 21, 2008)
  • Language: English
  • ASIN: B006BC5NCQ
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #1,701,772 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

Most Helpful Customer Reviews
35 of 39 people found the following review helpful
2.0 out of 5 stars It's called a Programmer's Reference, but it's not August 20, 2009
Programming books usually take one of three approaches. It either assumes you know absolutely nothing and gives you a very exhaustive history of not only the subject at hand, but programming in general. Or, the book is written "cookbook" style. Finally, some programming books are written as reference books.

This book claims to be a reference book, but it's not. As someone who's programmed for over a decade in a ton of languages and just had to learn enough to get this project done, I wanted a reference book so that I could say, "how do you write an 'if' statement?" "What's the syntax for logical operators in this language?" Stuff like that. You will find *none* of that in this book's index or table of contents.

For example, I had to write a simply if block. if ((condition A) and (condition B) Then 'Do something

I didn't know if the "and" was supposed to be && or AND or something else. So I looked up "logical operators" in the index. Nothing. So I then looked up just "operators". Nothing! Google to the rescue!

I needed to know how to increment a variable. In many languages (Perl, C/C++, PHP), if you have a variable named x, incrementing it would be as simple as x++. I may be wrong, but it doesn't appear that can be done in VBA and you'd have to do x = x + 1. It would be nice if there was a section quickly explaining this stuff.

There are a TON of examples such as this. For example, the books talks about functions. None of the examples, however, show you how to return a value from a function. The syntax is different than in most other languages, so it should at least be given a small mention. Again, google to the rescue!

In some cases, although you can't find it in the table of contents or the index, it *is* in the book.
Read more ›
Was this review helpful to you?
7 of 7 people found the following review helpful
This is the best book I've found to quickly learn Excel VBA. I am an experienced programmer but I had no knowledge of VBA before reading this book. The book gives instant gratification with useful samples that are easily adapted. It teaches by example and still manages to get general and useful techniques across. In short, for my purpose (quickly picking up Excel VBA without getting terribly bored), this book is perfect.
Comment | 
Was this review helpful to you?
14 of 19 people found the following review helpful
2.0 out of 5 stars Key pieces missing July 11, 2008
Format:Paperback|Verified Purchase
I book this WROX book sight unseen, but after having read these reviews and owning many other WROX books. The immediate trigger for buying was having some of my Excel 2003 macros stop working in Excel 2007 due to the change in color scheme. This book is silent on the new color scheme. On the other hand, "Excel 2007 Power Programming with VBA (Mr. Spreadsheet's Bookshelf)" deals with this issue in depth, so I bought this reference also, and would recommend it over the WROX book. Mr Spreadsheet's book has saved my bacon.

The WROX book doesn't handle the translation of Excel 2003 "lists" to Excel 2007 "tables" completely. I would have liked more info on Structured References, which have the potential to make "tables" actually useful.
Comment | 
Was this review helpful to you?
11 of 15 people found the following review helpful
5.0 out of 5 stars Required Reference for Excel 2007 VBA September 7, 2007
The brief treatment of VBA syntax and the power of VBA make this text for intermediate users and above in my opinion.

Its broad scope, covering command bars, class modules, ribbonx, open XML and much more make it a source to be mined over time. As a reader's knowledge increases, he is likely to find first one and then another Excel feature that can be utilized using techniques described in this text.
Comment | 
Was this review helpful to you?
3 of 4 people found the following review helpful
5.0 out of 5 stars Didn't know a lick of VBA of ANY type going in February 20, 2009
Format:Paperback|Verified Purchase
I used this book to finalize an Excel project promised to a client that I soon realized would require some kind of programming. I do have a programming background and I think that always helps, but I think even w/o that, this book may just do the trick for anybody (It even has a section to teach some basic programming skills and show these skills using VBA for Excel.)

The project was successful only because of this book (and my hard work! - but we're not reviewing that here! ;-)

Worth every pennny.
Comment | 
Was this review helpful to you?
6 of 9 people found the following review helpful
Format:Paperback|Verified Purchase
I started working for a hedge fund when I brought this book because I don't know how to use VBA, and impressed my colleages with my rapid improvement in VBA programming. It helps a lot and have a lot of good tricks. Will be very useful if you know some level of programming.
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Really enjoyed reading this book September 3, 2011
Format:Paperback|Verified Purchase
I found the introductory chapters and concepts were laid out more logically, and explained more thoroughly than the other VBA 2007 references I've read. For someone like me who is just starting out on the VBA journey, it was far easier to comprehend compared to John Walkenbach's VBA reference. Excellent use of examples also.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
2.0 out of 5 stars Hard to use.
Good book. Problem is that code snippets difficult to read as images. Should be plain text. Somewhat difficult to navigate.
Published 1 month ago by Ian
5.0 out of 5 stars Five Stars
A Good Quick Reference to look up specific VBA statements. Perfect of someone right after training.
Published 3 months ago by R. Montgomery
4.0 out of 5 stars Most balanced books of its kind
Excellent source...This whole series of books just fit with my style of learning and working. Lots of great info in this written in a way that doesn't waste your time, but also... Read more
Published 17 months ago by Scott A. Hardy
4.0 out of 5 stars Handy guidebook to Excel life
You try to code, you lurk forums, you Google it, and then you fall back on this book. This is the bible you should have available anytime you're coding. Stop reading this. Read more
Published 20 months ago by Brass Angel
5.0 out of 5 stars Complete and easy
It covers almost all topics in detail (with examples) but still easy to understand. Perfect as a guide and referencce
Published on December 24, 2012 by Javier
4.0 out of 5 stars helpful reference
I haven't written basic since junior high, so I was pretty rusty. I know the basics with Excel, and C coding, so this was a very helpful resource to understand how the macros... Read more
Published on October 29, 2011 by G. Swalling
4.0 out of 5 stars ExcelReview
I have not finished this book yet but John Green's last book about Excel put me in front of others in development. Read more
Published on March 3, 2008 by Jamshid A. Khavari
Search Customer Reviews
Search these reviews only

More About the Authors

Discover books, learn about writers, read author blogs, and more.


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category