Wiley.com
Print this page Share

Excel 2003 VBA Programmer's Reference

ISBN: 978-0-7645-5660-9
1176 pages
July 2004
Excel 2003 VBA Programmer

Description

What is this book about?

Excel 2003 VBA Programmer's Reference is an updated and expanded version of the two previous editions now with a reference section downloadable from the Web for easy perusal. The book is aimed at Excel users who want to gain more control over their spreadsheets using VBA or who want to develop Excel applications for other users. The book starts with a primer chapter focused on bringing the readers up to speed with Excel and VBA. From there, the book expands to focus on major issues faced by advanced Excel users and developers.

What does this book cover?

In this book, you'll discover how to do the following:

  • Set up applications and convert them to add-ins
  • Package and distribute Excel applications
  • Set up interaction with other Office applications and databases
  • Program the VB Editor and use the Windows API
  • Use VB6 and VB.NET with Excel
  • Set up internationalization
  • Advanced debugging and error handling techniques
See More

Table of Contents

About the Authors.

Acknowledgments.

Introduction.

Chapter 1: Primer in Excel VBA.

Chapter 2: Programming in the VBE.

Chapter 3: The Application Object.

Chapter 4: Object-Oriented Theory and VBA.

Chapter 5: Event Procedures.

Chapter 6: Class Modules.

Chapter 7: Writing Bulletproof Code.

Chapter 8: Debugging and Testing.

Chapter 9: UserForms.

Chapter 10: Adding Controls.

Chapter 11: Data Access with ADO.

Chapter 12: Creating and Using Add-ins.

Chapter 13: Automation Addins and COM Addins.

Chapter 14: Customizing the VBE.

Chapter 15: Interacting with Other Office Applications.

Chapter 16: Programming with the Windows API.

Chapter 17: International Issues.

Chapter 18: Workbooks and Worksheets.

Chapter 19: Using Ranges.

Chapter 20: Using Names.

Chapter 21: Working with Lists.

Chapter 22: PivotTables.

Chapter 23: Filtered Lists.

Chapter 24: Generating Charts.

Chapter 25: Office Files and Folders.

Chapter 26: Command Bars.

Chapter 27: SmartTags.

Chapter 28: Excel and the Internet.

Chapter 29: XML and Excel.

Appendix A: Excel 2003 Object Model.

Appendix B: VBE Object Model.

Appendix C: VBE Object Model.

Index.

See More

Author Information

Paul Kimmel founded Software Conceptions, Inc in 1990 and has been designing and building software and writing computer books ever since. Paul Kimmel is the author of several books on VBA, VB, VB.NET, C#, Delphi, and C++. Paul is also the bi-monthly columnist for www.codeguru.com ‘s VB Today column and a frequent contributor to periodicals and online publications, including www.InformiT.com. You may contact him at pkimmel@softconcepts.com for help designing and building software.

Stephen Bullen is based in Carlow, Ireland and in London, England. He has been running his own Company, Business Modelling Solutions Ltd Since 1997, specializing in Excel development and consulting and has worked for some of the worlds largest companies. The BMS web site, www.BMSLtd.co.uk, contains a large number of examples of his work, including tools and utilities to extend Excel’s functionality and many examples of Excel development techniques.
Stephen devotes a lot of his spare time to helping other Excel users by answering questions in the CompuServ Excel forum and Microsoft’s Internet Newsgroup. In recognition of his contribution and knowledge, Microsoft has awarded him the status of ‘Most Valuable Professional’ every year since 1996.
Stephen wrote most of the Latest chapters in the Excel 2000 and Excel 2002 VBA.
Programmers References, which has been carried forward to this book and updated by Paul Kimmel where appropriate. Stephen has not directly contributed to this edition.

John Green, Sydney Australia, is an independent consultant specializing in Excel and Access. With 30 years of computing experience, a Chemical Engineering degree and an MBA, he draws from a diverse background. He has led training courses for software applications and operating systems both in Australia and overseas. Microsoft has awarded him the status of ‘Most Valuable Professional’ every year since 1995.
John was the principal author of the Excel 2000 and Excel 2002 VBA Programmers References, which have been carried forward to this book and updated by Paul Kimmel where appropriate. John has not directly contributed to this edition.

Bob Bovey is a software developer specializing in Microsoft Office, Visual Basic, and SQL Server applications. He is founder and president of the custom application development firm Application Professionals. Rob developed several Addins shipped by Microsoft for Excel. He also co-authored the Microsoft Excel 97 Developer’s Kit. Microsoft has awarded Rob the status of ‘Most Valuable Professional’ every year since 1995. Rob authored the chapter on Data Access with ADO for the Excel 2002 VBA Programmer’s Reference. He has not directly contributed to this edition.

Robert Rosenberg runs his own consulting business, which specializes in providing custom solutions and advanced training in Microsoft Office. His clients include fortune five hundred companies in the entertainment, financial, and legal fields. As a Microsoft Valuable Professional in Excel, he also continually offers advanced online support in Excel on behalf of Microsoft to users of their Internet newsgroups. Robert was responsible for updating the content for the Excel and Office Indexes for the 2002 version of this book. This included updating example code and listings for existing VBA objects as well as listing new object descriptions, their methods, properties and/or arguments along with code examples.

Brian Patterson (Contributor) currently works for Illinois Mutual Life as a Software Development Coordinator where he is generally working with C# in WinForms or the Corporate Internet site. Brian has been writing for various publications since 1994 and has co-written several .NET related books including “Migrating to Visual Basic.nET” and .NET Enterprise Development with VB.NET.” You can generally find him posting in the MSDN Newsgroups or hanging out with his lovely wife and 3 children. You can reach him via email at bdpatterson@illinoismutual.com.

See More

Related Websites / Extra

Wrox.comVisit Wrox.com to get updates, source code, or to join the discussions about this book and other programming topics.
See More

Downloads

Download TitleSizeDownload
Download the code and Excel files for the book in .zip format. 1.43 MB Click to Download
Download the code and Excel files for the book in .ace format at less than 1/2 the size of the .zip.
Go to www.winace.com if your archive software doesn't support the .ace format.
585.97 KB Click to Download
Missing Appendix 817.59 KB Click to Download
Download Updated Code for Chapter 26

This code was updated on Nov. 1st, 2006 to include command bars that were missing from the original download. If you originally downloaded this before Nov. 1st, redownload this updated version.

The code examples for this title are stored in a ZIP archive. To open it, you will need a computer with software capable of opening ZIP files. If you do not already have this capability, you can download a free trial of WinZip.

166.82 KB Click to Download
Error in Code / Download Ch. 26 Command Bars 96.07 KB Click to Download
See More

Errata

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
Code Replacement / Errata Download
The content for this title has been posted and may be accessed via:
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764556606,descCd-download_code.html
03/13/2006
Code Download Problems with code downloads
If you are experiencing problems with the code for this book, you can try the code downloads for the 2002 version of this book, which is located here.
12/17/04
38 Missing Verb in Sentence
The text in first gray box reads: "Note that subroutines and functions can both accept arguments. However, you cannot subroutine with input parameters directly by pressing F5."

The second sentence is missing a verb between "cannot" and "subroutine"
5/2/05
52 Duplicate Code
Code Lines "i = i + 1" at the very bottom of the page.

The code is meant to simulate a password login with only 3 attempts to enter the correct password. The 3 attempts only work if the mentioned line is only used once, and not twice as dictated in the book.
7/20/05
9 179 Error in Code Block
In the code block at the end of the page, the following text is missing on line 13:
“Select Case Data(1, 3)”
10/10/05
207 Error in Text
second shaded passage:
If Connection.State = ObjectStateEnum.adStateOpen) Then objConn.Close.

Should be:
If (Connection.State = ObjectStateEnum.adStateOpen) Then Connection.Close
03/22/07
211 Error in Text
Final paragraph on page 211 starts:
"Line declares the WithEvents statement".
Should be:
"Line 2 declares the WithEvents statement"
11/16/05
446 Error in Code Box at
Code in the grey box at the bottom of page 446 should be corrected as follows:

Public Sub AddNewData()

Dim lRows As Long

With Range("DataBase")
lRows = .Rows.Count + 1
Range("Input").Copy Destination:=.Cells(lRows, 1)
.Resize(lRows).Name = "Database"
End With

End Sub
6/1/05
Appendix Missing Appendix for download
Please go to the download page to download the missing appendix.
6/1/05
Back Cover This book does not cover VB.Net with Excel
On the back cover it mentions that included in this book's contents you will learn how to use VB.Net with Excel.

This book does not cover that.
3/30/05
26 Updated Files for Chapter 26
Download updated code for Chapter 26 from the Download page.
3/10/06
See More

Related Titles

Back to Top