|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/mastering-named-ranges-arrays-and-vba-in-excel/
课程评论:没有评论
**Excel 命名范围、数组和 VBA 精通课程摘要** 本课程旨在教授学员如何有效地协同运用 Excel 中的 VBA、数组和命名范围,以解决实际问题。课程围绕一个最小二乘法拟合的简单实例展开,但无需深厚的矿物加工背景。 **课程结构:** * **第一部分:导论** * 概述课程内容,强调 VBA、数组和命名范围的整合优势。 * 介绍一个基础的标准差函数,为后续内容铺垫。 * 指导学员在 Excel 中设置计算函数。 * **第二部分:VBA** * 介绍 VBA 基础知识,重点关注用于连接数组和命名范围的部分。 * 教授如何创建简单的自定义函数。 * 演示如何创建和应用 Excel 加载项 (Add-ins),以实现代码复用。 * 通过创建标准差估计函数和更复杂的基于 `Select Case` 的函数,展示加加载项的应用。 * 初步介绍面向对象编程在 VBA 中的概念,以及如何使用全局变量提高函数效率。 * **第三部分:数组** * 解释数组的概念及其与传统公式计算的区别。 * 介绍 Excel 365 中的“溢出”功能如何简化数组的使用。 * 教授如何创建 VBA 数组函数,以一次性应用于一组数据。 * 通过实例演示如何实现应用于数组的 VBA 函数。 * **第四部分:命名范围** * 展示创建命名范围的好处,即提高公式的可读性和易用性,避免 A1 引用。 * 讲解如何在 VBA 代码中使用命名范围,以增强代码的可读性和健壮性。 * 介绍如何通过加载项和“查找和替换”功能来复制和管理命名范围,以支持数组函数的应用。 * **第五部分:结束** * 总结课程内容,强调联用数组、VBA 和命名范围的优势。 * 简要提及课程内容在实际问题中的应用,例如流程建模。 本课程作为入门介绍,重点在于展示这三项 Excel 工具整合运用后的强大能力。
1. Section 1 IntroductionThere are 5 sections in 'Mastering Named Ranges, Arrays and VBA in Excel course':IntroductionVBAArraysNamed Ranges andCloseIn the introduction you will gain an understanding of what to expect in the course through an outline. The course links up VBA, Arrays and Named Ranges so that you will be able to use these tools effectively and synergistically. This is not a detailed VBA course, it focuses only on using VBA to create array functions. The problem that we use as a focus is simply setting up a least squares minimalization function for mineral processing however you do not need to be a mineral processor to do this course. We do not go into mineral processing in depth.1.1 Lecture 1 Introduction In this lecture it is explained about the 5 sections in the course: the introduction, VBA, Name Ranges, arrays and the close. You will be introduced to the importance and advantages of linking VBA, Named Ranges and arrays.1.2 Lecture 2 Standard Deviation FunctionsIn this lecture we provide a simple function in which Named Ranges and arrays will later be applied using VBA. The explained problem is fundamental to mineral processing. It is a very simple problem that anyone with basic maths skills can understand. You will understand the formula that will later be used to explain VBA, Named Ranges and arrays.1.3 Lecture 3 Simple Problem SetupYou will be to set up a basic function in an Excel spreadsheet in order to later apply VBA, arrays and Named Ranges.2. Section 2 VBAIn VBA section, you will learn the necessary fundamental information to later apply VBA to create array functions in Excel.2.1 Lecture 4 Introduction to VBAVBA is visual basic for applications. This is not a VBA course. You will identify the part of VBA to be used for linking arrays and Named Ranges.2.2 Lecture 5 VBA - Creating FunctionsIn this lecture you will apply a simple function (not using either Named Ranges or arrays) to the specified problem. You will learn how to create a simple function.2.3 Lecture 6 Creating AddinsWe don't want to repeat the same code in different workbooks instead we want to create an addin which can then be applied by different workbooks. In this lecture you will learn how to create an addin.2.4 Lecture 7 Applying AddinsOnce an addin is created you can apply it to different workbooks.2.5 Lecture 8 Simple Conversion Function AddinIn this lecture you will create a simple function to estimate the standard deviation based on the confidence of a measurement's accuracy. You will create the function and add it to an addin, and then apply it to a workbook.2.6 Lecture 9 Complex Conversion Function Addin using Select CaseIn this lecture we extend the code of the previous lecture based on more options for the confidence of a measured variable. Here we introduce the select Case method which is a more elegant approach than nested if statements. You will create the function, add it to the addin and apply it to a workbook.2.7 Lecture 10 Object Oriented ProgrammingYou will develop an overall understanding of what object oriented programming is. In the context of VBA, you will gain a basic idea of what object oriented programming is. By getting an object we gain access to all methods, properties and events associated with that object. The most common object is a worksheet object. You will have opportunity to practice using objects.2.8 Lecture11 Using GlobalsWhen we create VBA functions, we want them to be efficient. We don't want to repeat the same calculations over and over again. If we set up parameters as global variables they can be accessed once and then utilised repeatedly creating VBA error.3. Section 3 ArraysIn the Arrays section you will understand what is meant by an array and how it compares to normal spooling of equations.3.1 Lecture 12 SpoolingSpooling was incorporated in Excel 365. This made Arrays much easier to use. Spooling automatically determines the cells where an array function is to be applied.3.2 Lecture 13 Creating VBA Array FunctionsThus far, functions have been very simple. In an array function we want to be able to apply a function to a set of data rather than one cell at a time. This is why we use arrays. You will understand what is an array and why it is necessary to create VBA array functions.3.3 Lecture 14 Array ExampleYou will be able to create VBA functions that are applied to arrays. You will use an example of an array function applying it to the simple problems already specified.4. Section 4 Named RangesIn the Named Ranges section you will apply array functions to Named Ranges. Excel appears to be limited in its use of Named Ranges. Addins created by the instructor are used to show you how to do things like copy Named Ranges so they can be applied to new equations.4.1 Lecture 15 Creating Named RangesNamed Ranges are useful if we want to avoid A1 notation so that the functions have more meaning and therefore are easier to understand. You will review how to create Named Ranges.4.2 Lecture 16 Using Named Ranges in VBAVBA isn't directly connected to Excel. That is, if we change the position of data in Excel and we refer to it in VBA it may cause an error. By using Named Ranges we can make the VBA code easier to understand and less error prone. In this lecture you will use Named Ranges in VBA code.4.3 Lecture 17 Copying and Grouping Named RangesNamed Ranges are applied to a set of data but suppose we want to copy that data onto the same worksheet to create a new set of data. We can do that but we can't simultaneously copy the Named Range. An addin is provided by the instructor that you can use to copy Named Ranges within a worksheet.In normal Excel, if we copy an array function which is applied to A1 notation data it should apply correctly to the new copied data. But it won't do that if we use Named Ranges, so again we have to come up with a strategy in order to apply any copied array function that uses Named Ranges to be applied to the new copied Named Ranges. You will learn an effective strategy using find and replace.5. Section 5 CloseIn the Close section you will discover some of the ways in which the course material is applied to practical problems. The main focus is flowchart based process modelling.5.1 Lecture 18 Closing RemarksThis course has been introductory only but it shows the advantages of linking your arrays, VBA and Named Ranges.