Professional Excel Development: The Definitive Guide to Developing Applications Using Microsoft Excel and VBA
暫譯: 專業 Excel 開發:使用 Microsoft Excel 和 VBA 開發應用程式的終極指南

Stephen Bullen, Rob Bovey, John Green

  • 出版商: Addison Wesley
  • 出版日期: 2005-02-01
  • 售價: $2,760
  • 貴賓價: 9.5$2,622
  • 語言: 英文
  • 頁數: 936
  • 裝訂: Paperback
  • ISBN: 0321262506
  • ISBN-13: 9780321262509
  • 相關分類: Excel
  • 已絕版

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

相關主題

商品描述

Description:

Finally, there's a book that treats Excel as the powerful development platform it really is, and covers every facet of developing commercial-quality Excel applications.

This is not a book for beginners. Writing for professional developers and true Excel experts, the authors share insider's knowledge they've acquired building Excel applications for many of the world's largest companies—including Microsoft. Professional Excel Development demonstrates how to get the utmost from Excel, addressing everything from application architectures through worksheet and userform design, charting, debugging, error handling and optimizing performance. Along the way, the authors offer best practices for every type of Excel development, from building add-ins through interacting with XML Web services. Coverage includes

  • Building add-ins to provide new Excel functions

  • Designing effective worksheets, userforms and other user interface elements

  • Leveraging Excel's powerful data analysis features

  • Creating sophisticated custom charts

  • Handling errors, debugging applications and optimizing performance

  • Using class modules and interfaces to create custom objects

  • Understanding Windows API calls: when to use them, and how to modify them

  • Adding worksheet functions with

  • C-based XLLs

  • Programming with databases

  • Controlling external applications from Excel

  • Integrating with Visual Basic 6, VB.NET and Visual Studio Tools for Office

  • Using XML to import and export data and communicate with Web services

  • Providing help, securing, packaging and distributing

The accompanying CD-ROM contains the book's sample timesheet application at every stage of construction, with detailed code comments. It also includes many examples of the concepts introduced in each chapter and a collection of the authors' Excel development utilities.

 

Table of Contents:

Acknowledgments.

About the Authors.

1. Introduction.

    About This Book

    The Excel Developer

    Excel as an Application Development Platform

    Structure

    Examples

    Supported Versions

    Typefaces

    On the CD

    Help and Support

    Feedback

2. Application Architectures.

    Concepts

    Conclusion

3. Excel and VBA Development Best Practices.

    Naming Conventions

    Best Practices for Application Structure and Organization

    General Application Development Best Practices

    Conclusion

4. Worksheet Design.

    Principles of Good Worksheet UI Design

    Program Rows and Columns: The Fundamental UI Design Technique

    Defined Names

    Styles

    User Interface Drawing Techniques

    Data Validation

    Conditional Formatting

    Using Controls on Worksheets

    Practical Example

    Conclusion

5. Function, General and Application-Specific Add-ins.

    The Four Stages of an Application

    Function Library Add-ins

    General Add-ins

    Application-Specific Add-ins

    Practical Example

    Conclusion

6. Dictator Applications.

    Structure of a Dictator Application

    Practical Example

    Conclusion

7. Using Class Modules to Create Objects.

    Creating Objects

    Creating a Collection

    Trapping Events

    Raising Events

    Practical Example

    Conclusion

8. Advanced Command Bar Handling.

    Command Bar Design

    Table-Driven Command Bars

    Putting It All Together

    Loading Custom Icons from Files

    Hooking Command Bar Control Events

    Practical Example

    Conclusion

9. Understanding and Using Windows API Calls.

    Overview

    Working with the Screen

    Working with Windows

    Working with the Keyboard

    Working with the File System and Network

    Practical Examples

    Conclusion

10. Userform Design and Best Practices.

    Principles

    Control Fundamentals

    Visual Effects

    Userform Positioning and Sizing

    Wizards

    Dynamic Userforms

    Modeless Userforms

    Control Specifics

    Practical Examples

    Conclusion

11. Interfaces.

    What Is an Interface?

    Code Reuse

    Defining a Custom Interface

    Implementing a Custom Interface

    Using a Custom Interface

    Polymorphic Classes

    Improving Robustness

    Simplifying Development

    A Plug-in Architecture

    Practical Example

    Conclusion

12. VBA Error Handling.

    Error-Handling Concepts

    The Single Exit Point Principle

    Simple Error Handling

    Complex Project Error Handler Organization

    The Central Error Handler

    Error Handling in Classes and Userforms

    Putting It All Together

    Practical Example

    Conclusion

13. Programming with Databases.

    An Introduction to Databases

    Designing the Data Access Tier

    Data Access with SQL and ADO

    Further Reading

    Practical Example

    Conclusion

14. Data Manipulation Techniques.

    Excel’s Data Structures

    Data Processing Features

    Advanced Functions

    Conclusion

15. Advanced Charting Techniques.

    Fundamental Techniques

    VBA Techniques

    Conclusion

16. VBA Debugging.

    Basic VBA Debugging Techniques

    The Immediate Window (Ctrl+G)

    The Call Stack (Ctrl+L)

    The Watch Window

    The Locals Window

    The Object Browser (F2)

    Creating and Running a Test Harness

    Using Assertions

    Debugging Shortcut Keys that Every Developer Should Know

    Conclusion

17. Optimizing VBA Performance.

    Measuring Performance

    The PerfMon Utility

    Creative Thinking

    Macro-Optimization

    Micro-Optimization

    Conclusion

18. Controlling Other Office Applications.

    Fundamentals

    The Primary Office Application Object Models

    Practical Example

    Conclusion

19. XLLs and the C API.

    Why Create an XLL-Based Worksheet Function

    Creating an XLL Project in Visual Studio

    The Structure of an XLL

    The XLOPER and OPER Data Types

    The Excel4 Function

    Commonly Used C API Functions

    XLOPERs and Memory Management

    Registering and Unregistering Custom Worksheet Functions

    Sample Application Function

    Debugging the Worksheet Functions

    Miscellaneous Topics

    Additional Resources

    Conclusion

20. Combining Excel and Visual Basic 6.

    A Hello World ActiveX DLL

    Why Use VB6 ActiveX DLLs in Excel VBA Projects

    In-Process versus Out-of-Process

    Automating Excel From a VB6 EXE

    Practical Examples

    Conclusion

21. Writing Add-ins with Visual Basic 6.

    A Hello World Add-in

    The Add-in Designer

    Installation Considerations

    The AddinInstance Events

    Command Bar Handling

    Why Use a COM Add-in?

    Automation Add-ins

    Practical Example

    Conclusion

22. Using VB.NET and the Visual Studio Tools for Office.

    Overview

    How to Leverage the .NET Framework

    Managed Workbooks

    Managed Excel Add-ins

    Hybrid VBA/VSTO Solutions

    The VSTO Security Model

    The Big Issues

    Further Reading

    Practical Example

    Conclusion

23. Excel, XML and Web Services.

    XML

    Web Services

    Practical Example

    Conclusion

24. Providing Help, Securing, Packaging and Distributing.

    Providing Help

    Securing

    Packaging

    Distributing

    Conclusion

Index.

商品描述(中文翻譯)

描述:
最後,這本書將 Excel 視為一個真正強大的開發平台,涵蓋了開發商業品質 Excel 應用程式的各個方面。

這不是一本針對初學者的書籍。作者針對專業開發人員和真正的 Excel 專家撰寫,分享了他們在為世界上許多大型公司(包括 Microsoft)構建 Excel 應用程式時獲得的內部知識。《專業 Excel 開發》展示了如何充分利用 Excel,涵蓋了從應用程式架構到工作表和使用者表單設計、圖表、除錯、錯誤處理和性能優化的所有內容。在此過程中,作者提供了各類 Excel 開發的最佳實踐,從構建附加元件到與 XML Web 服務互動。內容包括:

- 構建附加元件以提供新的 Excel 函數
- 設計有效的工作表、使用者表單和其他使用者介面元素
- 利用 Excel 強大的數據分析功能
- 創建複雜的自定義圖表
- 處理錯誤、除錯應用程式和優化性能
- 使用類模組和介面創建自定義物件
- 理解 Windows API 調用:何時使用它們,以及如何修改它們
- 使用 C-based XLLs 添加工作表函數
- 與資料庫進行編程
- 從 Excel 控制外部應用程式
- 與 Visual Basic 6、VB.NET 和 Visual Studio Tools for Office 整合
- 使用 XML 進行數據的導入和導出以及與 Web 服務的通信
- 提供幫助、安全性、打包和分發

隨附的 CD-ROM 包含本書的範例工時表應用程式在每個構建階段的詳細代碼註解。它還包括每章中介紹的概念的許多範例以及作者的 Excel 開發工具集。

目錄:
- 感謝詞
- 關於作者
1. 介紹
- 本書介紹
- Excel 開發者
- Excel 作為應用程式開發平台
- 結構
- 範例
- 支援的版本
- 字型
- CD 上的內容
- 幫助與支援
- 反饋
2. 應用程式架構
- 概念
- 結論
3. Excel 和 VBA 開發最佳實踐
- 命名慣例
- 應用程式結構和組織的最佳實踐
- 一般應用程式開發最佳實踐
- 結論
4. 工作表設計
- 良好工作表 UI 設計的原則
- 程式行和列:基本的 UI 設計技術
- 定義名稱
- 樣式
- 使用者介面繪圖技術
- 數據驗證
- 條件格式
- 在工作表上使用控制項
- 實用範例
- 結論
5. 函數、一般和應用特定附加元件
- 應用程式的四個階段
- 函數庫附加元件
- 一般附加元件
- 應用特定附加元件
- 實用範例
- 結論
6. 獨裁者應用程式
- 獨裁者應用程式的結構
- 實用範例
- 結論
7. 使用類模組創建物件
- 創建物件
- 創建集合
- 捕捉事件
- 引發事件
- 實用範例
- 結論
8. 高級命令列處理
- 命令列設計
- 基於表格的命令列
- 整合所有內容
- 從檔案加載自定義圖示
- 鉤住命令列控制事件
- 實用範例
- 結論
9. 理解和使用 Windows API 調用