Writing Excel Macros with VBA, 2/e
暫譯: 使用 VBA 編寫 Excel 巨集,第二版

Steven Roman

  • 出版商: O'Reilly
  • 出版日期: 2002-07-30
  • 售價: $1,580
  • 貴賓價: 9.5$1,501
  • 語言: 英文
  • 頁數: 574
  • 裝訂: Paperback
  • ISBN: 0596003595
  • ISBN-13: 9780596003593
  • 相關分類: Excel
  • 已過版

買這商品的人也買了...

相關主題

商品描述

Newly updated for Excel 2002, Writing Excel Macros with VBA, 2nd Edition provides Excel power-users, as well as programmers who are unfamiliar with the Excel object model, with a solid introduction to writing Visual Basic for Applications (VBA) macros and programs for Excel. In particular, the book focuses on:

  • The Visual Basic Editor and the Excel VBA programming environment. Excel features a complete, state-of-the-art integrated development environment for writing, running, testing, and debugging VBA macros.


The VBA programming language, the same programming language used by the other applications in Microsoft Office XP and 2000, as well as by the retail editions of Visual Basic 6.0. The Excel object model, including new objects and new members of existing objects in Excel 2002. Excel exposes nearly all of its functionality through its object model, which is the means by which Excel can be controlled programmatically using VBA. While the Excel object model, with 192 objects, is the second largest among the Office applications, you need to be familiar with only a handful of objects to write effective macros. Writing Excel Macros focuses on these essential objects, but includes a discussion of many more objects as well.

Writing Excel Macros with VBA, 2nd Edition is written in a terse, no-nonsense manner that is characteristic of Steven Roman's straightforward, practical approach. Instead of a slow-paced tutorial with a lot of handholding, Roman offers the essential information about Excel VBA that you must master to write macros effectively. This tutorial is reinforced by interesting and useful examples that solve common problems you're sure to have encountered.

Writing Excel Macros with VBA, 2nd Edition is the book you need to delve into the basics of Excel VBA programming, enabling you to increase your power and productivity.

Table of Contents

Preface

1. Introduction

Part I. The VBA Environment

2. Preliminaries

3. The Visual Basic Editor, Part I

4. The Visual Basic Editor, Part II

Part II. The VBA Programming Language

5. Variables, Data Types, and Constants

6. Functions and Subroutines

7. Built-in Functions and Statements

8. Control Statements

Part III. Excel Applications and the Excel Object Model

9. Object Models

10. Excel Applications

11. Excel Events

12. Custom Menus and Toolbars

13. Built-In Dialog Boxes

14. Custom Dialog Boxes

15. The Excel Object Model

16. The Application Object

17. The Workbook Object

18. The Worksheet Object

19. The Range Object

20. Pivot Tables

21. The Chart Object

22. Smart Tags

Part IV. Appendixes

A. The Shape Object

B. Getting the Installed Printers

C. Command Bar Controls

D. Face IDs

E. Programming Excelfrom Another Application

F. High-Level and Low-Level Languages

G. New Objects in Excel XP

Index

商品描述(中文翻譯)

新更新的《Writing Excel Macros with VBA, 2nd Edition》針對 Excel 2002,為 Excel 的高級用戶以及對 Excel 物件模型不熟悉的程式設計師提供了撰寫 Visual Basic for Applications (VBA) 巨集和程式的堅實入門。特別是,本書重點介紹:

- Visual Basic 編輯器和 Excel VBA 程式設計環境。Excel 提供了一個完整的、最先進的整合開發環境,用於撰寫、執行、測試和除錯 VBA 巨集。

VBA 程式語言是 Microsoft Office XP 和 2000 中其他應用程式所使用的相同程式語言,以及 Visual Basic 6.0 的零售版本。Excel 物件模型,包括 Excel 2002 中的新物件和現有物件的新成員。Excel 通過其物件模型暴露幾乎所有功能,這是 Excel 可以使用 VBA 進行程式控制的方式。雖然 Excel 物件模型擁有 192 個物件,是 Office 應用程式中第二大,但您只需熟悉少數幾個物件即可撰寫有效的巨集。《Writing Excel Macros》專注於這些基本物件,但也包括對更多物件的討論。

《Writing Excel Macros with VBA, 2nd Edition》以簡潔、直截了當的方式撰寫,這是 Steven Roman 直接、實用的方法的特徵。與其說是慢節奏的教程,還不如說 Roman 提供了撰寫有效巨集所必須掌握的 Excel VBA 的基本資訊。這個教程通過有趣且實用的範例來加強,這些範例解決了您肯定會遇到的常見問題。

《Writing Excel Macros with VBA, 2nd Edition》是您深入了解 Excel VBA 程式設計基礎的書籍,使您能夠提高您的能力和生產力。

目錄

前言

1. 介紹

第一部分:VBA 環境

2. 預備知識
3. Visual Basic 編輯器,第一部分
4. Visual Basic 編輯器,第二部分

第二部分:VBA 程式語言

5. 變數、資料類型和常數
6. 函數和子程序
7. 內建函數和語句
8. 控制語句

第三部分:Excel 應用程式和 Excel 物件模型

9. 物件模型
10. Excel 應用程式
11. Excel 事件
12. 自訂選單和工具列
13. 內建對話框
14. 自訂對話框
15. Excel 物件模型
16. 應用程式物件
17. 工作簿物件
18. 工作表物件
19. 範圍物件
20. 樞紐分析表
21. 圖表物件
22. 智能標籤

第四部分:附錄

A. 形狀物件
B. 獲取已安裝的印表機
C. 命令列控制項
D. 面孔 ID
E. 從其他應用程式編程 Excel
F. 高階語言和低階語言
G. Excel XP 中的新物件
索引