Skip to Content
VB & VBA in a Nutshell: The Language
book

VB & VBA in a Nutshell: The Language

by Paul Lomax
October 1998
Intermediate to advanced
656 pages
16h 10m
English
O'Reilly Media, Inc.
Content preview from VB & VBA in a Nutshell: The Language

5.2. Reading the Object Model

The object model of an OLE Automation server is a hierarchy of classes, each containing methods, properties, and events. These methods, properties, and events determine how you can control the application. First of all, though, you need to know what methods, properties, and events are available to you. The first port of call should be the documentation (if any) available from the producer of the OLE Automation server. In addition, once you've created a project-level reference to the application, you can find out a lot about the application's object model from within the VB development environment.

5.2.1. Using the Object Browser

You can use the Object Browser to explore the contents of each class and to find out, for example, what data types are returned by various methods and properties, or what parameters a particular method is expecting. To open the Object Browser, which is shown in Figure 5.2, do any of the following:

  • Click the Object Browser button on the toolbar.

  • Select the Object Browser option from the View menu.

  • Press F2.

Figure 5.2. The Visual Basic Object Browser

The Object Browser is divided into three panes. The left pane displays the classes contained within the selected library; the right pane displays the properties, methods, events, and constants of the selected class; and the bottom pane displays details about the selected ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Programming Excel with VBA and .NET

Programming Excel with VBA and .NET

Jeff Webb, Steve Saunders

Publisher Resources

ISBN: 1565923588Catalog PageErrata