買這商品的人也買了...
-
$780CMMI: Guidelines for Process Integration and Product Improvement (Harcover)
-
$680$537 -
$680$646 -
$880$695 -
$880$695 -
$780$741 -
$780$663 -
$680$578 -
$580$493 -
$560$437 -
$600$474 -
$650$507 -
$680$578 -
$980$774 -
$580$452 -
$420$357 -
$690$538 -
$680$537 -
$720$569 -
$825JavaScript Bible, 6/e (Paperback)
-
$490$387 -
$2,010$1,910 -
$2,030$1,929 -
$680$537 -
$750$593
相關主題
商品描述
Description
Programming Excel isn't about adding new features as much as it's about combining existing features to solve particular problems. With Visual Basic for Applications (VBA), you can transform Excel into a task-specific piece of software that will quickly and precisely serve your needs. This single-source reference and how-to guide will teach you to use the complete range of Excel programming tasks to solve problems. Developers looking forward to .NET development will also find discussion of how the Excel object model works with .NET tools, including Visual Studio Tools for Office (VSTO).
Why program Excel? For solving complex calculations and presenting results, Excel is amazingly complete with every imaginable feature already in place. But programming Excel isn't about adding new features as much as it's about combining existing features to solve particular problems. With a few modifications, you can transform Excel into a task-specific piece of software that will quickly and precisely serve your needs. In other words, Excel is an ideal platform for probably millions of small spreadsheet-based software solutions.
The best part is, you can program Excel with no additional tools. A variant of the Visual Basic programming language, VB for Applications (VBA) is built into Excel to facilitate its use as a platform. With VBA, you can create macros and templates, manipulate user interface features such as menus and toolbars, and work with custom user forms or dialog boxes. VBA is relatively easy to use, but if you've never programmed before, Programming Excel with VBA and .NET is a great way to learn a lot very quickly. If you're an experienced Excel user or a Visual Basic programmer, you'll pick up a lot of valuable new tricks. Developers looking forward to .NET development will also find discussion of how the Excel object model works with .NET tools, including Visual Studio Tools for Office (VSTO).
This book teaches you how to use Excel VBA by explaining concepts clearly and concisely in plain English, and provides plenty of downloadable samples so you can learn by doing. You'll be exposed to a wide range of tasks most commonly performed with Excel, arranged into chapters according to subject, with those subjects corresponding to one or more Excel objects. With both the samples and important reference information for each object included right in the chapters, instead of tucked away in separate sections, Programming Excel with VBA and .NET covers the entire Excel object library. For those just starting out, it also lays down the basic rules common to all programming languages.
With this single-source reference and how-to guide, you'll learn to use the complete range of Excel programming tasks to solve problems, no matter what you're experience level.
Table of Contents
Preface
Part I. Learning VBA
1. Becoming an Excel Programmer
Why Program?
Record and Read Code
Change Recorded Code
Fix Misteakes
Start and Stop
View Results
Where's My Code?
Macros and Security
Write Bug-Free Code
Navigate Samples and Help
What You've Learned
2. Knowing the Basics
Parts of a Program
Classes and Modules
Procedures
Variables
Conditional Statements
Loops
Expressions
Exceptions
What You've Learned
3. Tasks in Visual Basic
Types of Tasks
Interact with Users
Do Math
Work with Text
Get Dates and Times
Read and Write Files
Check Results
Find Truth
Compare Bits
Run Other Applications
Control the Compiler
Not Covered Here
What You've Learned
4. Using Excel Objects
Objects and Their Members
Get Excel Objects
Get Objects from Collections
About Me and the Active Object
Find the Right Object
Common Members
Respond to Events in Excel
The Global Object
The WorksheetFunction Object
What You've Learned
5. Creating Your Own Objects
Modules Versus Classes
Add Methods
Create Properties
Define Enumerations
Raise Events
Collect Objects
Expose Objects
Destroy Objects
Things You Can't Do
What You've Learned
6. Writing Code for Use by Others
Types of Applications
The Development Process
Determine Requirements
Design
Implement and Test
Integrate
Test Platforms
Document
Deploy
What You've Learned
Resources
Part II. Excel Objects
7. Controlling Excel
Perform Tasks
Control Excel Options
Get References
Application Members
AutoCorrect Members
AutoRecover Members
ErrorChecking Members
SpellingOptions Members
Window and Windows Members
Pane and Panes Members
8. Opening, Saving, and Sharing Workbooks
Add, Open, Save, and Close
Share Workbooks
Program with Shared Workbooks
Program with Shared Workspaces
Respond to Actions
Workbook and Workbooks Members
RecentFile and RecentFiles Members9. Working with Worksheets and Ranges
Work with Worksheet Objects
Worksheets and Worksheet Members
Sheets Members
Work with Outlines
Outline Members
Work with Ranges
Range Members
Work with Scenario Objects
Scenario and Scenarios Members
Resources
10. Linking and Embedding
Add Comments
Use Hyperlinks
Link and Embed Objects
Speak
Comment and Comments Members
Hyperlink and Hyperlinks Members
OleObject and OleObjects Members
OLEFormat Members
Speech Members
UsedObjects Members
11. Printing and Publishing
Print and Preview
Control Paging
Change Printer Settings
Filter Ranges
Save and Display Views
Publish to the Web
AutoFilter Members
Filter and Filters Members
CustomView and CustomViews Members
HPageBreak, HPageBreaks, VPageBreak, VPageBreaks Members
PageSetup Members
Graphic Members
PublishObject and PublishObjects Members
WebOptions and DefaultWebOptions Members
12. Loading and Manipulating Data
Working with QueryTable Objects
QueryTable and QueryTables Members
Working with Parameter Objects
Parameter Members
Working with ADO and DAO
ADO Objects and Members
DAO Objects and Members
DAO.Database and DAO.Databases Members
DAO.Document and DAO.Documents Members
DAO.QueryDef and DAO.QueryDefs Members
DAO.Recordset and DAO.Recordsets Members
13. Analyzing Data with Pivot Tables
Quick Guide to Pivot Tables
Program Pivot Tables
PivotTable and PivotTables Members
PivotCache and PivotCaches Members
PivotField and PivotFields Members
CalculatedFields Members
CalculatedItems Members
PivotCell Members
PivotFormula and PivotFormulas Members
PivotItem and PivotItems Members
PivotItemList Members
PivotLayout Members
CubeField and CubeFields Members
CalculatedMember and CalculatedMembers Members
14. Sharing Data Using Lists
Use Lists
ListObject and ListObjects Members
ListRow and ListRows Members
ListColumn and ListColumns Members
ListDataFormat Members
Use the Lists Web Service
Lists Web Service Members
Resources
15. Working with XML
Understand XML
Save Workbooks as XML
Use XML Maps
Program with XML Maps
XmlMap and XmlMaps Members
XmlDataBinding Members
XmlNamespace and XmlNamespaces Members
XmlSchema and XmlSchemas Members
Get an XML Map from a List or Range
XPath Members
Resources
16. Charting
Navigate Chart Objects
Create Charts Quickly
Embed Charts
Create More Complex Charts
Choose Chart Type
Create Combo Charts
Add Titles and Labels
Plot a Series
Respond to Chart Events
Chart and Charts Members
ChartObject and ChartObjects Members
ChartGroup and ChartGroups Members
SeriesLines Members
Axes and Axis Members
DataTable Members
Series and SeriesCollection Members
Point and Points Members
17. Formatting Charts
Format Titles and Labels
Change Backgrounds and Fonts
Add Trendlines
Add Series Lines and Bars
ChartTitle, AxisTitle, and DisplayUnitLabel Members
DataLabel and DataLabels Members
LeaderLines Members
ChartArea Members
ChartFillFormat Members
ChartColorFormat Members
DropLines and HiLoLines Members
DownBars and UpBars Members
ErrorBars Members
Legend Members
LegendEntry and LegendEntries Members
LegendKey Members
Gridlines Members
TickLabels Members
Trendline and Trendlines Members
PlotArea Members
Floor Members
Walls Members
Corners Members
18. Drawing Graphics
Draw in Excel
Create Diagrams
Program with Drawing Objects
Program Diagrams
Shape, ShapeRange, and Shapes Members
Adjustments Members
CalloutFormat Members
ColorFormat Members
ConnectorFormat Members
ControlFormat Members
FillFormat Members
FreeFormBuilder
GroupShapes Members
LineFormat Members
LinkFormat Members
PictureFormat Members
ShadowFormat
ShapeNode and ShapeNodes Members
TextFrame
TextEffectFormat
ThreeDFormat
19. Adding Menus and Toolbars
About Excel Menus
Build a Top-Level Menu
Create a Menu in Code
Build Context Menus
Build a Toolbar
Create Toolbars in Code
CommandBar and CommandBars Members
CommandBarControl and CommandBarControls Members
CommandBarButton Members
CommandBarComboBox Members
CommandBarPopup Members
20. Building Dialog Boxes
Types of Dialogs
Create Data-Entry Forms
Design Your Own Forms
Use Controls on Worksheets
UserForm and Frame Members
Control and Controls Members
Font Members
CheckBox, OptionButton, ToggleButton Members
ComboBox Members
CommandButton Members
Image Members
Label Members
ListBox Members
MultiPage Members
Page Members
ScrollBar and SpinButton Members
TabStrip Members
TextBox and RefEdit Members
21. Sending and Receiving Workbooks
Send Mail
Work with Mail Items
Collect Review Comments
Route Workbooks
Read Mail
MsoEnvelope Members
MailItem Members
RoutingSlip Members
Part III. Extending Excel
22. Building Add-ins
Types of Add-ins
Code-Only Add-ins
Visual Add-ins
Set Add-in Properties
Sign the Add-in
Distribute the Add-in
Work with Add-ins in Code
AddIn and AddIns Members
23. Integrating DLLs and COM
Use DLLs
Use COM Applications
24. Getting Data from the Web
Perform Web Queries
QueryTable and QueryTables Web Query Members
Use Web Services
Resources
25. Programming Excel with .NET
Approaches to Working with .NET
Create .NET Components for Excel
Use .NET Components in Excel
Use Excel as a Component in .NET
Create Excel Applications in .NET
Resources
26. Exploring Security in Depth
Security Layers
Understand Windows Security
Password-Protect and Encrypt Workbooks
Program with Passwords and Encryption
Workbook Password and Encryption Members
Excel Password Security
Protect Items in a Workbook
Program with Protection
Workbook Protection Members
Worksheet Protection Members
Chart Protection Members
Protection Members
AllowEditRange and AllowEditRanges Members
UserAccess and UserAccessList Members
Set Workbook Permissions
Program with Permissions
Permission and UserPermission Members
Add Digital Signatures
Set Macro Security
Set ActiveX Control Security
Distribute Security Settings
Using the Anti-Virus API
Common Tasks
Resources
Part IV. Appendixes
A. Reference Tables
B. Version Compatibility
Index
商品描述(中文翻譯)
描述
編程 Excel 不僅僅是添加新功能,而是將現有功能結合起來以解決特定問題。使用 Visual Basic for Applications (VBA),您可以將 Excel 轉變為一個針對特定任務的軟體,快速且精確地滿足您的需求。這本單一來源的參考書和操作指南將教您使用完整範圍的 Excel 編程任務來解決問題。期待 .NET 開發的開發者也會發現有關 Excel 物件模型如何與 .NET 工具(包括 Visual Studio Tools for Office (VSTO))協同工作的討論。
為什麼要編程 Excel?在解決複雜計算和呈現結果方面,Excel 擁有每一個可以想像的功能,令人驚訝地完整。但編程 Excel 不僅僅是添加新功能,而是將現有功能結合起來以解決特定問題。通過一些修改,您可以將 Excel 轉變為一個針對特定任務的軟體,快速且精確地滿足您的需求。換句話說,Excel 是一個理想的平台,可能適用於數百萬個小型基於電子表格的軟體解決方案。
最棒的是,您可以在不需要額外工具的情況下編程 Excel。VB for Applications (VBA) 是 Visual Basic 編程語言的一個變體,內建於 Excel 中,以便於其作為平台的使用。使用 VBA,您可以創建宏和模板,操作用戶界面功能,如菜單和工具欄,並與自定義用戶表單或對話框進行交互。VBA 相對容易使用,但如果您從未編程過,《Programming Excel with VBA and .NET》是快速學習的好方法。如果您是經驗豐富的 Excel 用戶或 Visual Basic 程式設計師,您將學到許多有價值的新技巧。期待 .NET 開發的開發者也會發現有關 Excel 物件模型如何與 .NET 工具(包括 Visual Studio Tools for Office (VSTO))協同工作的討論。
這本書通過用簡單明瞭的英語清晰地解釋概念,教您如何使用 Excel VBA,並提供大量可下載的範例,讓您通過實踐學習。您將接觸到使用 Excel 最常見的各種任務,這些任務按主題分成章節,這些主題對應於一個或多個 Excel 物件。每個章節中都包含範例和每個物件的重要參考信息,而不是隱藏在單獨的部分中,《Programming Excel with VBA and .NET》涵蓋了整個 Excel 物件庫。對於剛入門的人,它還列出了所有編程語言的基本規則。
通過這本單一來源的參考書和操作指南,您將學會使用完整範圍的 Excel 編程任務來解決問題,無論您的經驗水平如何。
目錄
前言
第一部分:學習 VBA
1. 成為 Excel 程式設計師
- 為什麼編程?
- 記錄和閱讀代碼
- 更改記錄的代碼
- 修正錯誤
- 開始和停止
- 查看結果
- 我的代碼在哪裡?
- 宏和安全性
- 編寫無錯誤的代碼
- 瀏覽範例和幫助
- 您學到了什麼
2. 知道基本知識
- 程式的組成部分
- 類和模組
- 程序
- 變數
- 條件語句
- 循環
- 表達式
- 異常
- 您學到了什麼
3. Visual Basic 中的任務
- 任務類型
- 與用戶互動
- 做數學
- 處理文本
- 獲取日期和時間
- 讀取和寫入文件
- 檢查結果
- 找到真相
- 比較位元
- 運行其他應用程序
- 控制編譯器
- 此處未涵蓋的內容
- 您學到了什麼
4. 使用 Excel 物件
- 物件及其成員
- 獲取 Excel 物件
- 從集合中獲取物件
- 關於我和活動物件
- 找到正確的物件
- 常見成員
- 響應 Excel 中的事件
- 全局物件
- WorksheetFunction 物件
- 您學到了什麼
5. 創建自己的物件
- 模組與類
- 添加方法
- 創建屬性
- 定義列舉
- 引發事件
- 收集物件
- 暴露物件
- 銷毀物件
- 不能做的事情
- 您學到了什麼
6. 為他人編寫代碼
- 應用程序類型
- 開發過程
- 確定需求
- 設計
- 實施和測試
- 整合
- 測試平台
- 文檔
- 部署
- 您學到了什麼
- 資源
第二部分:Excel 物件
7. 控制 Excel
- 執行任務
- 控制 Excel 選項
- 獲取引用
- 應用程序成員
- 自動更正成員
- 自動恢復成員
- 錯誤檢查成員
- 拼寫選項成員
- 窗口和窗口成員
- 窗格和窗格成員
8. 打開、保存和共享工作簿
- 添加、打開、保存和關閉
- 共享工作簿
- 使用共享工作簿編程
- 使用共享工作區編程
- 響應操作
- 工作簿和工作簿成員
- RecentFile 和 RecentFiles 成員
9. 與工作表和範圍一起工作
- 與工作表物件一起工作
- 工作表和工作表成員
- Sheets 成員
- 與大綱一起工作
- 大綱成員
- 與範圍一起工作
- Range 成員
- 與情境物件一起工作
- Scenario 和 Scenarios 成員
- 資源
10. 連結和嵌入
- 添加註解
- 使用超連結
- 連結和嵌入物件
- 說話
- Comment 和 Comments 成員
- Hyperlink 和 Hyperlinks 成員
- OleObject 和 OleObjects 成員
- OLEFormat 成員
- Speech 成員
- UsedObjects 成員
11. 列印和發佈
- 列印和預覽
- 控制分頁
- 更改打印機設置
- 篩選範圍
- 保存和顯示視圖
- 發佈到網絡
- AutoFilter 成員
- Filter 和 Filters 成員
- CustomView 和 CustomViews 成員
- HPageBreak、HPageBreaks、VPageBreak、VPageBreaks 成員
- PageSetup 成員
- Graphic 成員
- PublishObject 和 PublishObjects 成員
- WebOptions 和 DefaultWebOptions 成員
12. 加載和操作數據
- 與 QueryTable 物件一起工作
- QueryTable 和 QueryTables 成員
- 與 Parameter 物件一起工作
- Parameter 成員
- 與 ADO 和 DAO 一起工作
- ADO 物件和成員