官术网_书友最值得收藏!

Chapter 3: The VBA Object Model

VBA is essentially object driven. Excel, for example, provides dozens of objects that can be manipulated. This includes workbooks, worksheets, ranges, charts and images, and shapes. These objects are arranged in a hierarchical structure. If you want to do anything in VBA, understanding the VBA object model is essential. The recipes in this chapter will be your reference to understanding and working with objects in VBA.

In this chapter, we will cover the following recipes:

  • Understanding and identifying objects in VBA
  • Objects as a collection, and changing the attributes of the entire collection
  • Modifying object properties
  • Associating methods with objects
  • Using events to activate objects
  • Using the Object Browser in the VBA Editor

By the end of this chapter, you will be able to work with objects in VBA.

主站蜘蛛池模板: 莒南县| 准格尔旗| 醴陵市| 卫辉市| 康马县| 大英县| 苍梧县| 利川市| 绥滨县| 芷江| 合水县| 油尖旺区| 康定县| 金堂县| 滨海县| 饶河县| 靖边县| 株洲县| 马鞍山市| 崇信县| 晋江市| 宜宾县| 安庆市| 桃园县| 阳新县| 贵定县| 聂荣县| 涞源县| 多伦县| 怀宁县| 金溪县| 衡阳县| 龙门县| 金湖县| 云霄县| 高唐县| 广元市| 万州区| 哈密市| 道真| 湾仔区|