当前位置:网站首页>Excel uses Visual Basic Editor to modify macros
Excel uses Visual Basic Editor to modify macros
2022-07-30 15:32:00 【night drift ice】
The macro in Excel is a very powerful tool. When we use Excel for tasks, for certain needs, such as the needs of the boss, customers or other needs, we need to use Excel as a table tool to complete the production of charts, inputProcessing information, etc.
And our operations can be recorded using macros. Next time, we only need to press a button, and all these operations can be automatically executed again. Once macros are used, we can get twice the result with half the effort.
This is the power of office automation and the advantage of computer software. It's like writing a wrong word on paper, it will be very troublesome, but if the operation is wrong in the software, just ctrl+z to retractYou can do it in one step.
Tools, technologies are dead, they are not powerful, it is the people who use them that are powerful.Therefore, as a user, you need to discover your needs and usage scenarios, use tools to cooperate with you, and find the best solution to the problem.
Then learning how to record macros can make our repetitive work easier and faster.
But sometimes things change, and recorded macros can be affected and don't perform well.
At this time, we do not need to re-record or create new macros, but we can use the previous macros to make some modifications to the places that need to be modified.
In order to edit the macro, we need to touch the content of the code level, we need to use the Visual Basic Editor (VBE).
Open View->Macro->View Macros.

Click Edit to edit, and the Visual Basic Editor interface appears.

This is a brand new Window, separate from Excel.The macros you record and the code you write for you in the background are here.
The unit of code storage, this window opens, is called module.
Then here, we can find the place we want to modify and modify it, such as changing the month "Jan, Feb, Mar" to "Apr, May, Jun".
Visual Basic Editor
VBE is the VBA (Visual Basic for Applications) development environment built into Excel.
ALT + F11, can quickly call out the VBE, instead of entering from the editing macro as above.

After opening, there are two windows on the left, one is the Project Window and the other is the properties window, which can be closed or opened.
In the View menu, you can find options for these two windows:

VBA Modules
When you open VBE, you need a place to store VBA code.
A common approach is to store code in modules, aka modules.
In VBE, in the project window, you can see the reference of your Workbook, and there is a reference to the sheet below, you can see all the contents of this project.
To add a module to the project to add your own code, click the menu Insert -> Module.
You can see a Modules folder appear in the project window, which has a Module file in which you can write VBA code.
边栏推荐
- 视频加密的误解
- 分布式限流 redission RRateLimiter 的使用及原理
- postgresql的普通字符串和转义字符串
- Mysql数据库查询好慢,除了索引,还能因为什么?
- ToDesk版本更新,引入RTC传输技术,是否早以替代向日葵远程控制?
- SLF4J的使用
- Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine
- 基于FPGA的DDS任意波形输出
- 视频切换播放的例子(视频切换范例)代码
- 4位资深专家多年大厂经验分享出Flink技术内幕架构设计与实现原理
猜你喜欢

延时消息队列

极验深知v2分析

71-page comprehensive overall solution for global tourism 2021 ppt

canal scrape data

DDS Arbitrary Waveform Output Based on FPGA

Alluxio for Presto fu can across the cloud self-service ability

5G-based Warehousing Informatization Solution 2022

The evolution of content products has three axes: traffic, technology, and product form

In-depth analysis of Kubernetes application management

1222. 可以攻击国王的皇后-力扣双百代码
随机推荐
关于mariadb/mysql的user表:密码正确但登录失败,可能与mysql的空用户有关
Could not acquire management access for administration
Excel使用Visual Basic Editor对宏进行修改
How is the B+ tree index page size determined?
嵌入式开发:嵌入式基础知识——正确启动固件项目的 10 条建议
自动化办公|办公软件和亿图脑图MindMaster快捷键
JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )
分布式前修课:MySQL实现分布式锁
Flink实时仓库-DWS层(关键词搜索分析-自定义函数,窗口操作,FlinkSql设置水位线,保存数据到Clickhouse)模板代码
Meta首份元宇宙白皮书9大看点,瞄准80万亿美元市场
瑞吉外卖项目实战Day02
Flink real-time data warehouse completed
Flink实时仓库-DWS层(状态编程,windowall的使用,数据保存到clickhouse)模板代码
What is Ts?
Web3创始人和建设者必备指南:如何构建适合的社区?
MySql error: SqlError(Unable to execute query", "Can't create/write to file OS errno 2 - No such file...
[Enlightenment by Opportunity-53]: "Sushu"-3- Self-cultivation and Self-cultivation
Start learning C language
超T动力 盈运天下——中国重汽黄河/豪沃WP14T产品首发荣耀上市!
ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector