Automation using Macros & VBA

所在平台: Udemy

课程主页: https://www.udemy.com/course/macros-vba/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**Coursera 课程《自动化:宏与VBA》内容摘要** 本课程深入教授如何利用Excel的宏(Macros)和Visual Basic for Applications(VBA)来实现自动化操作,从而提升工作效率。课程内容涵盖以下主要方面: 1. **宏基础与录制**: * 了解宏的概念、安全性设置以及如何保存启用宏的工作簿。 * 学习录制简单宏,包括使用相对引用、运行、查看、编辑、删除和复制宏。 * 掌握将宏分配给控件和键盘快捷键,实现更便捷的调用。 * 通过录制工作坊,学习录制求和、合并及除法宏,并创建对象来运行这些宏。 2. **VBA编程入门**: * 理解VBA作为Excel编程语言的角色。 * 学习VBA术语、Excel对象模型及其应用。 * 掌握使用Immediate Window设置属性值,以及与工作表进行交互。 * 了解Excel VBA提供的强大帮助资源。 3. **VBA编辑器(VBA Editor)**: * 熟悉VBA编辑器的界面,包括Project Explorer、Properties Window和Work Area。 * 学习如何打开、关闭编辑器,以及在代码模块中进行操作。 * 掌握在编辑器中运行代码、设置断点和单步调试的技巧。 4. **变量与数据类型**: * 理解变量的概念,学会创建和使用变量。 * 区分隐式和显式声明,以及理解变量的作用域(包括模块级作用域)。 * 学习不同的数据类型及其声明方法。 5. **VBA函数**: * 学习如何创建VBA函数,并将其应用于Excel工作表中。 * 掌握设置函数数据类型、使用多个参数以及修改现有函数。 * 了解如何导入VBA模块,并在VBA代码中使用自定义函数。 6. **Excel对象模型**: * 深入理解Application、Workbook、Worksheets和Range等关键Excel对象。 * 学习如何通过VBA代码操作这些对象,实现对Excel工作簿、工作表和单元格的控制。 * 通过程序测试来验证对编辑器的使用。 7. **编程技巧与控制结构**: * 学习使用MsgBox和InputBox函数与用户进行交互。 * 掌握If语句(单条件和多条件)、Select Case语句实现条件判断。 * 学习For循环和Do...Loop循环,实现不同类型的循环操作。 8. **自动化启动与错误处理**: * 学习编程自动化过程,设置自动运行宏。 * 了解不同类型的错误,并学习使用On Error语句创建简单的错误处理器。 * 掌握Resume语句的使用,以及在错误处理器中利用决策结构和Err对象。 9. **Web数据获取**: * 介绍HTML和Power Query获取Web数据。 * 学习使用Web Reference Library,通过VBA根据HTML标签、类名、名称或ID获取Web数据。 * 通过Souq网站作为示例,演示实际的数据抓取过程。 本课程为学员提供了从基础宏录制到高级VBA编程的全面指导,旨在帮助用户掌握自动化Excel操作的关键技能。

课程评论(0条)

课程详情

EXCEL VBA TRAINING OUTLINE1. Recorded Macros· Understanding Excel Macros· Setting Macro Security· Saving a Document as Macro Enabled· Recording a Simple Macro· Running a Recorded Macro· Relative Cell References· Running Macro with Relative References· Viewing a Macro· Editing a Macro· Assigning a Macro to the controls· Running a Macro from the controls· Assigning a Keyboard Shortcut to a Macro· Deleting a Macro· Copying a Macro2. Recorder Workshop· Preparing Data for an Application· Recording a Summation Macro· Recording Consolidations· Recording Divisional Macros· Testing Macros· Creating Objects to Run Macros· Assigning a Macro to an Object3. Understanding VBA· Programming in Microsoft Excel· VBA Terminology· Understanding Objects· Viewing the Excel Object Model· Using the Immediate Window· Setting Property Values· Working with Worksheets· The Best VBA Help Available4. The VBA Editor· The VBA Editor Screen· Opening and Closing the Editor· Using the Project Explorer· Working with the Properties Window· Using the Work Area· Viewing Other Panes· Working with Toolbars· Working with a Code Module· Running code from the Editor· Setting Breakpoints in the Editor· Stepping Through Code5. Using Variables· Understanding Variables· Creating and Using Variables· Implicit and Explicit Declarations· The Scope of Variables· Module Level Scoping· Data Types· Declaring Data types6. Functions In VBA· Understanding Functions· Creating VBA Functions· Using a VBA Function in a Worksheet· Setting Function Data Types· Using Multiple Arguments· Modifying a VBA Function· Importing a VBA Module· Using a Function in VBA Code7. Using Excel Objects· The Application Object· The Workbook Objects· Program Testing with The Editor· Using Workbook Objects· The Worksheets Object· Using the Worksheets Object· The Range Object· Using Range Objects8. Programming Techniques· The MsgBox Function· Using MsgBox· InputBox Techniques· Using the InputBox Method· The IF Statement· Using IF for Single Conditions· Using IF for multiple Conditions· The Select Case Statement· Using The Select Case Statement· For Loops· Looping With specified Iterations· The Do...Loop Statement· Looping With Unknown Iterations9. Automatic Startup· Programming Automatic Procedures· Running Automatic Procedures· Automatically Starting a Workbook10. Error Handling· Error types· The On Error statement· Creating a Simple Error Handler· Using the Resume Statement· Using Decision Structures in Error Handlers· Using the Err object11. Get Data From Web· Introduction to HTML· Introduction to Power query get from web· Introduction to web reference library· VBA Get items by (tags, class, name, id)· Get data from souq as an example

课程标签

0人关注该课程

主题相关的课程