Excel 2007 VBA Programmer's Reference

( 1 )


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 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 ...

See more details below
BN.com price
(Save 25%)$39.99 List Price
Other sellers (Paperback)
  • All (11) from $6.74   
  • New (6) from $21.76   
  • Used (5) from $6.74   


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 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).

Read More Show Less

Product Details

  • ISBN-13: 9780470046432
  • Publisher: Wiley
  • Publication date: 3/6/2007
  • Series: Programmer to Programmer Series
  • Edition number: 1
  • Pages: 1176
  • Sales rank: 584,433
  • Product dimensions: 7.46 (w) x 9.20 (h) x 2.12 (d)

Meet the Author

John Green lives and works in Sydney, Australia, as anindependent computer consultant, specializing in Excel and Access.He has 35 years of computing experience, a Chemical Engineeringdegree, and an MBA.
He wrote his first programs in FORTRAN, took a part in theevolution of specialized planning languages on mainframes and, inthe 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 andin training. He has led training seminars for software applicationsand operating systems both in Australia and overseas.
John has had regular columns in a number of Australian magazinesand has contributed chapters to a number of books includingExcel Expert Solutions and Using Visual Basic forApplications 5. He also co-authored Professional ExcelDevelopment with Stephen Bullen and Rob Bovey.
From 1995 to 2005 he was accorded the status of MVP (Most ValuableProfessional) by Microsoft for his contributions to the CompuServeExcel 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 andCharlie. He has two other daughters, Jane and Katie, from his firstmarriage.
A graduate of Oxford University, Stephen has an MA in Engineering,Economics, and Management, providing a unique blend of bothbusiness and technical skills. He has been providing Excelconsulting and application development services since 1994,originally as an employee of Price Waterhouse ManagementConsultants and later as an independent consultant trading underthe names of Business Modelling Solutions Limited and OfficeAutomation Limited. Stephen now works for Barclays Capital inLondon, developing trading systems for complex exotic derivativeproducts.
The Office Automation web site, www.oaltd.co.uk, provides a numberof helpful and interesting utilities, examples, tips and techniquesto help in your use of Excel and development of Excelapplications.
As well as co-authoring previous editions of the Excel VBAProgrammer’s Reference, Stephen co-authoredProfessional Excel Development.
In addition to his consulting and writing assignments, Stephenactively supports the Excel user community in Microsoft’speer-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 Professionaleach year since 1996.
Stephen Bullen contributed Chapters 14, 18, 24–27, andAppendix B to this book.

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

Michael Alexander is a Microsoft Certified ApplicationDeveloper (MCAD) with more than 14 years’ experienceconsulting and developing office solutions. He parlayed hisexperience with VBA and VB into a successful consulting practice inthe private sector, developing middleware and reporting solutionsfor a wide variety of industries. He currently lives in Frisco,Texas, where he serves as a Senior Program Manager for a toptechnology firm. Michael is the author of several books onMicrosoft Access and Excel, and is the principle behind DataPigTechnologies, where he shares Access and Excel knowledge with theOffice community.
Michael Alexander contributed Chapters 12 and 23 and AppendicesA and C to this book.

Read More Show Less

Table of Contents



Chapter 1: Primer in Excel VBA.

Chapter 2: The Application Object.

Chapter 3: Workbooks and Worksheets.

Chapter 4: Using Ranges.

Chapter 5: Using Names.

Chapter 6: Filtered Lists.

Chapter 7: PivotTables.

Chapter 8: Charts.

Chapter 9: Event Procedures.

Chapter 10: Adding Controls.

Chapter 11: Text Files and File Dialog.

Chapter 12: Working with XML and the Open XML File Formats.

Chapter 13: UserForms.

Chapter 14: RibbonX.

Chapter 15: Command Bars.

Chapter 16: Class Modules.

Chapter 17: Add-ins.

Chapter 18: Automation Add-ins and COM Add-ins.

Chapter 19: Interacting with Other Office Applications.

Chapter 20: Data Access with ADO.

Chapter 21: Managing External Data.

Chapter 22: The Trust Center and Document Security.

Chapter 23: Browsing OLAP Data Sources with Excel.

Chapter 24: Excel and the Internet.

Chapter 25: International Issues.

Chapter 26: Programming the VBE.

Chapter 27: Programming with the Windows API.

Appendix A: Excel 2002 Object Model

Appendix B: VBE Object Model.

Appendix C: Office 2007 Object Model.


Read More Show Less

Customer Reviews

Average Rating 4
( 1 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Posted February 1, 2010

    Useful Programmer's Reference

    I found this book very useful to help me to quickly update previous Excel 2003 VBA code and add new Excel 2007 VBA functionality.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)