Course Code: vbaexcel
Duration: 21 hours
Prerequisites:
  • 能夠使用電子錶格,基礎知識(參考文獻,範圍,工作表等)
  • VBA 建立宏或 VBA 代碼不需要背景知識

觀眾

  • 數據分析師
Overview:

它是 VBA 中過程程式設計的介紹。培訓可以讓您為進一步的學習和 VBA 環境打下堅實的基礎。

這種講師指導的現場培訓(在線或現場)面向希望使用 Excel 中的 VBA 來自動化任務的數據分析師。

在本次培訓結束時,參與者將能夠:

  • 根據需要錄製和編輯巨集。
  • 使用工作表中的數據編寫過程。
  • 創建您自己的函數。
  • 通過處理程序處理事件(打開工作表、儲存格更新等)。
  • 創建表單。

課程形式

  • 互動講座和討論。
  • 大量的練習和練習。
  • 在即時實驗室環境中動手實施。

課程自定義選項

  • 要申請本課程的定製培訓,請聯繫我們進行安排。
Course Outline:

  • 錄製和編輯宏
  • 將宏分配給窗體、工具列、鍵盤快速鍵

VBA 環境

  • Visual Basic 編輯器及其選項
  • Management 元件
  • 鍵盤快速鍵
  • 優化環境

過程程式設計簡介

  • 程式:函數子
  • 數據類型
  • if 語句 ...然後。。。否則如果......還。。。結束如果
  • 案例陳述
  • 循環 ...迴圈 while,直到
  • 循環 ...下一個
  • 指令:循環斷開(離開)
  • 陣列處理

帶引號的字串

  • 合併帶引號的字串(串聯)
  • 轉換為其他類型的(隱式與顯式)
  • 具有處理帶引號的字串的功能

Visual Basic的

  • 下載資料並將其上傳到電子表格(儲存格、範圍)
  • 下載資料並將其上傳到使用者(InputBox、MsgBox)
  • 變數的聲明
  • 變數的範圍和存留期
  • 運營商及其優先事項
  • 選項模組
  • 創建自己的函數並在工作表中使用它們
  • 物件、類、方法和屬性
  • 保護代碼
  • 安全代碼篡改和預覽

調試

  • 加工步驟
  • “局部變數”視窗
  • 即時視窗
  • 陷阱 - 腕表
  • 調用堆疊

錯誤處理

  • 錯誤的類型和避免的方法
  • 捕獲和處理運行時錯誤
  • 結構:出錯時繼續下一個,出錯時 Go到

Excel 物件模型

  • Application 物件
  • Workbook 物件和 Workbooks 的集合
  • Worksheet 物件和集合工作表
  • 物件 ThisWorkbook、ActiveWorkbook、ActiveCell
  • 物件選擇
  • 採集範圍
  • 物件儲存格
  • 在狀態列上顯示數據
  • 使用 ScreenUpdating 進行優化
  • 通過定時器方法進行時間測量

VBA 中的事件處理

  • 什麼是事件?
  • 回應事件並創建事件處理程式
  • 觸發事件處理程式
  • 服務頻繁發生的事件

VBA 表格

  • 創建自己的表單
  • 從代碼調用表單
  • 使用工作表中的表單
Sites Published:

United Arab Emirates - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Qatar - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Egypt - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Saudi Arabia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

South Africa - Visual Basic for Applications (VBA) in Excel - Introduction to programming

中国 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

香港 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

澳門 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

台灣 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

USA - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Österreich - Visual Basic für Applications (VBA) in Excel - Grundlagen

Schweiz - Visual Basic für Applications (VBA) in Excel - Grundlagen

Deutschland - Visual Basic für Applications (VBA) in Excel - Grundlagen

Czech Republic - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Denmark - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Estonia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Finland - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Greece - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Magyarország - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Ireland - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Luxembourg - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Latvia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

España - Visual Basic para Aplicaciones (VBA) en Excel - Introducción a la Programación

Italia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Lithuania - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Nederland - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Norway - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Portugal - Visual Basic for Applications (VBA) in Excel - Introduction to programming

România - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Sverige - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Türkiye - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Malta - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Belgique - Visual Basic for Applications (VBA) in Excel - Introduction to programming

France - Visual Basic for Applications (VBA) in Excel - Introduction to programming

日本 - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Australia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Malaysia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

New Zealand - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Philippines - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Singapore - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Thailand - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Vietnam - Visual Basic for Applications (VBA) in Excel - Introduction to programming

India - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Venezuela - Visual Basic para Aplicaciones (VBA) en Excel - Introducción a la Programación

Polska - Visual Basic for Applications (VBA) w Excel - wstęp do programowania

United Kingdom - Visual Basic for Applications (VBA) in Excel - Introduction to programming

South Korea - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Pakistan - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Sri Lanka - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Bulgaria - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Bolivia - Visual Basic para Aplicaciones (VBA) en Excel - Introducción a la Programación

Indonesia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Kazakhstan - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Moldova - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Morocco - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Tunisia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Kuwait - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Oman - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Slovakia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Kenya - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Nigeria - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Botswana - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Slovenia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Croatia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Serbia - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Bhutan - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Nepal - Visual Basic for Applications (VBA) in Excel - Introduction to programming

Uzbekistan - Visual Basic for Applications (VBA) in Excel - Introduction to programming