感謝您提交詢問!我們的一位團隊成員將在短時間內與您聯繫。
感謝您提交預訂!我們的一位團隊成員將在短時間內與您聯繫。
課程簡介
巨集 (Macros)
- 錄製和編輯巨集
- 將巨集分配給表單、工具欄或鍵盤快捷鍵
VBA 環境
- Visual Basic 編輯器及其選項
- 管理組件
- 鍵盤快捷鍵
- 優化開發環境
程序式編程入門
- 程序:函數 (Function) 與子程序 (Sub)
- 數據類型
- If 語句 ... then ... elseif ... else ... end if
- Case 語句
- 循環結構:for ... loop while, until
- For ... next 循環
- 控制循環的指令(退出,exit)
- 數組處理
字串
- 合併字串(連接操作)
- 轉換為其他類型(隱式與顯式轉換)
- 字串處理特性
Visual Basic 基礎
- 向電子試算表讀取和寫入數據(Cells, Range)
- 與用戶進行數據交互(InputBox, MsgBox)
- 變量的聲明
- 變量的作用域與生命週期
- 運算符及其優先級
- 模組選項
- 創建自己的函數並在試算表中調用
- 對象、類、方法和屬性
- 代碼保護
- 防止代碼被篡改與預覽
除錯 (Debugging)
- 逐步處理
- 局部變量視窗 (Locals window)
- 立即視窗 (Immediate window)
- 偵錯 - 監視器 (Watches)
- 調用堆疊 (Call Stack)
錯誤處理
- 錯誤類型及避免方法
- 捕獲並處理運行時錯誤
- 結構語句:On Error Resume Next, On Error GoTo
Excel 對象模型
- Application 對象
- Workbook 對象及 Workbooks 集合
- Worksheet 對象與 Worksheets 集合
- ThisWorkbook, ActiveWorkbook, ActiveCell 對象
- Selection 對象
- Range 集合
- Cells 對象
- 在狀態欄顯示數據
- 使用 ScreenUpdating 進行優化
- 使用 Timer 方法測量時間
VBA 事件處理
- 什麼是事件?
- 響應事件並創建事件處理程序
- 觸發事件處理程序
- 服務於頻繁發生的事件
VBA 表單
- 創建自定義表單
- 從代碼中調用表單
- 在試算表中使用表單
最低要求
- 具備使用電子試算表的能力,並掌握基礎知識(如引用、範圍、工作表等)。
- 無需具備 VBA 背景知識即可創建巨集或編寫 VBA 代碼。
目標受眾
- 數據分析師
21 小時
客戶評論 (5)
材料範圍
Marcin - Instytut Energetyki- Panstwowy Instytut Badawczy
課程 - Visual Basic for Applications (VBA) w Excel - wstęp do programowania
機器翻譯
A lot of exercise. Trainer doesn't need to have support for his course. He has really great knowledge for his subject.
Quentin Demeyere
課程 - Visual Basic for Applications (VBA) in Excel - Introduction to programming
機器翻譯
It was really nice of the trainer that he took a lot of time to answer our questions and helped us improve or gave us hints on how to improve some macros we were already using without fully understanding the code.
David Trieu - CD Projekt SA
課程 - Visual Basic for Applications (VBA) in Excel - Introduction to programming
機器翻譯
I genuinely enjoyed the short exercises.
Mateusz Podsiadlo
課程 - Visual Basic for Applications (VBA) in Excel - Introduction to programming
機器翻譯
Training agenda was well thought out.
Przemek Zalasinski
課程 - Visual Basic for Applications (VBA) in Excel - Introduction to programming
機器翻譯