-Includes a thorough introduction to the VBA language and Excel object libraries - Addresses the problems and pitfalls of Excel VBA--especially those not covered in Microsoft's online documentation--which advanced programmers face -Covers advanced topics that are often overlooked, such as automating graphs, pivot-tables, and data analysis; accesing external data using ADO; and using the file scripting object - Explains how to automate repetitive tasks and build easy-to-use Excel applications -Shows how to extend Excel - Focuses on real-world applications Microsoft's Excel is not only a powerful spreadsheet and graphics tool--it contains a programming language called Visual Basic for Applications (VBA). VBA allows you to automate simple tasks, but also enables you to create full-featured applications that make excel users more productive. In this book, Michael Kofler provides the definitive coverage of VBA for Excel by showing how it can be used to implement real-world business solutions. Designed to be useful for programmers who have never used VBA before, it nevertheless covers the advanced topics needed for users already familiar with VBA. First, Kofler introduces VBA and shows examples of the kind of tasks that can be performed. He then introduces the Excel object model, focusing on the unique characteristics of programming and debugging code that are associated with a spreadsheet. The next few chapters cover munues, toolbars, forms and templates--the tools for creating customized user interfaces and full-featured applications. Kofler then moves onto a broad range of advanced topics, including automating graphs and diagrams, accessing external databases from excel and analyzing data using grouping and pivot-tables. He even covers Excel-related features of Office Developer such as the development of COM Add-Ins. Throughout the book, the author never loses sight of the real-world problems faced by Excel programmers. The author also shows how to avaid undocumented or poorly documented problems that arise when programming Excel using VBA--the kind of practical knowledge that is gained through hard experience. About the Author Michael Kofler earned his Ph.D. in Computer Science at Graz Technical University. He has written a number of successful computer books on topics such as Visual Basic, VBA programming for Excel, Linux, Mathematica, and Maple.
- 詳細介紹 VBA 語言與 Excel 物件程式庫
- 探討 Excel VBA 的問題與陷阱,尤其是 Microsoft 線上文件未涵蓋、但進階程式設計師經常遇到的問題
- 涵蓋經常被忽略的進階主題,例如自動化圖表、樞紐分析表與資料分析;使用 ADO 存取外部資料;以及使用 FileSystemObject
- 說明如何將重複性工作自動化,並建置易於使用的 Excel 應用程式
- 示範如何擴充 Excel
- 著重於實際應用
Microsoft 的 Excel 不僅是功能強大的試算表與繪圖工具,也內含一種稱為 Visual Basic for Applications(VBA)的程式語言。VBA 不只能讓您將簡單的工作自動化,還能建立功能完整的應用程式,提升 Excel 使用者的工作效率。
在本書中,Michael Kofler 透過示範如何使用 VBA 實作實際的商務解決方案,提供 Excel VBA 最完整的介紹。本書適合從未使用過 VBA 的程式設計師,同時也涵蓋熟悉 VBA 的使用者所需的進階主題。
首先,Kofler 會介紹 VBA,並示範 VBA 可以執行的各類工作。接著,他將介紹 Excel 物件模型,並著重說明試算表程式設計與除錯程式碼時所具有的獨特特性。
接下來幾章將涵蓋功能表、工具列、表單與範本等主題,這些都是建立自訂使用者介面與功能完整應用程式的重要工具。之後,Kofler 會進一步探討廣泛的進階主題,包括自動化圖表與圖形、從 Excel 存取外部資料庫,以及利用群組與樞紐分析表進行資料分析。
本書甚至涵蓋 Office Developer 中與 Excel 相關的功能,例如 COM Add-Ins 的開發。全書始終著眼於 Excel 程式設計師在實際工作中所面臨的問題。作者也說明如何避免使用 VBA 進行 Excel 程式設計時所產生、但未記載於文件或文件說明不完整的問題——這些實用知識往往必須透過長期實務經驗才能掌握。
作者簡介
Michael Kofler 取得 Graz Technical University 的電腦科學博士學位。他曾撰寫多本廣受好評的電腦書籍,主題涵蓋 Visual Basic、Excel 的 VBA 程式設計、Linux、Mathematica 以及 Maple。
以上中文內容由 AI 翻譯