感謝您提交詢問!我們的一位團隊成員將在短時間內與您聯繫。
感謝您提交預訂!我們的一位團隊成員將在短時間內與您聯繫。
課程簡介
巨集
- 錄製和編輯巨集
- 將巨分配配給表單、工具列、鍵盤快捷鍵
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)
- 變數宣告
- 變數的範圍和生存期
- 運算子及其優先順序
- 模組選項
- 建立自己的函數並在工作表中用於其中
- 物件、類別、方法和屬性
- 確保程式碼安全
- 防止程式碼被竄改及預覽
除錯
- 逐步處理
- 本地變數視窗
- 立即視窗
- 陷阱 - 監視器
- 呼叫堆疊
錯誤處理
- 錯誤類型及避免方法
- 捕獲和處理執行時期錯誤
- 結構:On Error Resume Next, On Error GoTo
Excel 物件模型
- Application 物件
- 工作簿物件及工作簿集合
- 工作表物件及工作表集合
- ThisWorkbook、ActiveWorkbook、ActiveCell 物件
- 選擇範圍
- 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
機器翻譯