Home > Store > Computer Software > Business Office Software > Spreadsheet Software > Microsoft Excel

larger cover

Add To My Wish List

Absolute Beginner's Guide to VBA

  • Description
  • Downloads
  • Reviews
  • Sample Content & TOC

Visual Basic for Applications (VBA) is a set of tools based on the Visual Basic language. The great thing about using it to enhance Office applications is that it's easier to learn than Visual Basic and it comes with your Office license. After reading this book, the reader will be proficient in the VBA language and will have extensive knowledge of the Office 2003 Object Model. This book will cover all features of the VBA editor and show how to program some of the more useful new features in the Office 2003 applications.

This book assumes no prior programming experience, so even programming novices can get up to speed quickly on the basics of the VBA language. It is very practical and offers the reader tested programs and projects that he or she can implement right away. This book reinforces the reader's learning by presenting useful, end-of-chapter pedagogical resources, including question-and-answer sessions and quizzes, as well as practical exercises that cement and extend the reader's knowledge. It explorers not only the object models of Word and Excel, but also other members of the Office 2003 suite, including PowerPoint, Access, and Outlook.

Downloads

All the files developed for the book in one convenient download - 216 kb -- examples.zip

Customer Reviews

47 of 48 people found the following review helpful
4.0 out of 5 stars Great introduction to VBA, June 28, 2004
By A Customer
This review is from: Absolute Beginner's Guide to VBA (Paperback)
The book is what it says: for ABSOLUTE beginners. If you have some computer experience and a working knowledge of the MS Office suite and you are ready to begin leveraging the power of VBA, this book is for you. If you are afraid of VBA, have tried VBA before and failed, or know nothing about programming, this book is for you. I found the book to be of the appropriate length ~350 pages or so. There was also plenty of side bar information that did a great job of explaining WHY you would or would not want to do something. Coverage also included "good to know" gotchas that would definately cause a beginner some heartburn.

The Good:

The book starts out with the obvious introductory items like recording macros, building custom macros, programming control structures (if-then, for loops, etc). The book also has an entire chapter that covers "objects". They are well written, easy to follow, and definately target the beginner.

At about Chapter 7 the book begins... Read more

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


17 of 18 people found the following review helpful
1.0 out of 5 stars Good writing, bad teaching, April 23, 2005
Amazon Verified Purchase(What's this?)
This review is from: Absolute Beginner's Guide to VBA (Paperback)
After the first 30 pages I got frustrated enough to write this review. Obviously the author does not know that the best strategy to teach a beginner is to use examples and present ideas gradually in the context of complete examples. By page 10 you have procedures, modules, functions, projects and details of how to use a project module with the same name in a different project! Terrible teaching indeed. The side notes and other boxed pedogogical styles are as badly abstract and procedural as the main text. I have gone back and forth for clarification several times and to me that is not a good presentation.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


19 of 21 people found the following review helpful
5.0 out of 5 stars Integrate MS Office Applications, December 17, 2004
This review is from: Absolute Beginner's Guide to VBA (Paperback)
This book is where to start if you are trying to automate Word, Excel, PowerPoint, Outlook, or Access. It covers each application's object model (with practical examples) which gives you the confidence to develop in each application.

Absolute Beginner's Guide to VBA's main stength is its conciseness (only ~400 pages with lots of pictures). It is very easy to read; I read the book in 10 hours.

There is only one additional subject that should have been covered in an introductory book: starting applications from within another application - i.e. starting PowerPoint from within Access. The clearest explanation of this topic is in the book "Office XP Development with VBA". I also recommend this book.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 18 customer reviews...

Online Sample Chapters

Understanding Program Variables

Understanding Program Variables in VBA

Table of Contents



Introduction.

I. GETTING STARTED WITH VBA.

1. Recording Your First Macro.

What Is a Macro? Recording a VBA Macro.

2. Writing Your Own Macros.

Displaying the Visual Basic Editor. Touring the Visual Basic Editor. Writing Your Own Command Macro. Running a VBA Macro. Creating User-Defined Functions with VBA. Working with Procedures. Working with Modules. Shutting Down the Visual Basic Editor.

3. Understanding Program Variables.

Declaring Variables. Avoiding Variable Errors. Variable Data Types. Using Array Variables. Working with Constants.

4. Building VBA Expressions.

Working with VBA Operators. Understanding Operator Precedence. Working with Numeric Expressions. Working with String Expressions. Working with Logical Expressions. Working with Date Expressions.

5. Working with Objects.

The Object Hierarchy. Working with Object Properties. Working with Object Methods. Handling Object Events. Working with Object Collections. Assigning an Object to a Variable. The Is Operator. Working with Multiple Properties or Methods. Example: The Application Object. Example: The Window Object.

6. Controlling Your VBA Code.

Code That Makes Decisions. Using If...Then to Make True/False Decisions. Using If...Then...Else to Handle a False Result. Making Multiple Decisions. Functions That Make Decisions. Code That Loops. Using Do...Loop Structures. Using For...Next Loops. Using For Each...Next Loops. Using Exit For or Exit Do to Exit a Loop.

II. PUTTING VBA TO WORK.

7. Programming Word.

Working with Documents. Working with Text. The Range Object. The Selection Object. The Characters Object. The Words Object. The Sentences Object. The Paragraph Object.

8. Programming Excel.

Excels Application Object. Manipulating Workbook Objects. Dealing with Worksheet Objects. Working with Range Objects.

9. Programming PowerPoint.

PowerPoints Application Object. PowerPoints Presentation Object. Working with PowerPoint Slide Objects. Dealing with Shape Objects. Operating a Slide Show.

10. Programming Access Databases.

Getting Ready: Two Steps Before You Begin. Working with Database Records: Opening a Recordset. Working with a Recordset. Retrieving Data into Excel.

11. Programming Outlook Email.

Working with Outlook Folders. Working with Email Messages. Sending a Message. Working with Attachments. Programming Outlook from Other Applications.

III. GETTING THE MOST OUT OF VBA.

12. Interacting with the User.

Programming Sounds. Displaying Information to the User. Getting Input from the User.

13. Creating Custom VBA Dialog Boxes.

Adding a Form to Your Project. Changing the Forms Design-Time Properties. Working with Controls. Handling Form Events. Types of Form Controls.Using a Form in a Procedure.

14. Creating Custom Menus and Toolbars.

Assigning Macros to Menu Commands. Creating Custom Toolbars for Your Macros. Menus, Toolbars, and VBA. Understanding Command Bars. Working with Command Bar Controls.

15. Debugging VBA Procedures.

Trapping Program Errors. A Basic Strategy for Debugging. Pausing a Procedure. Stepping Through a Procedure. Monitoring Procedure Values. Using the Immediate Window. Debugging Tips.

IV. APPENDIXES.

Appendix A. VBA Statements.

Appendix B. VBA Functions.

 
Best Value

Book + eBook  $44.90  $26.94

Book Price: $19.96
eBook Price: $5.00

Buy

This book includes free shipping!

Buy

Book  $24.95  $19.96

Usually ships in 24 hours.

This book includes free shipping!

Buy

eBook (Adobe DRM)  $19.95  $15.96

About Adobe DRM eBooks

Information This eBook requires the free Adobe® Digital Editions software.

Before downloading this DRM-encrypted PDF, be sure to:


  • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
  • Authorize your copy of Adobe Digital Editions using your Adobe ID. If you don't already have an Adobe ID, you can create one here.
Purchase Reward: One Month Free Subscription
By completing any purchase on Que, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.