当前位置:网站首页>What is Excel Macro? Tutorial on using Excel macros
What is Excel Macro? Tutorial on using Excel macros
2022-07-21 02:38:00 【nginx】
Excel What is a macro ?
EXCEL A macro of a table is based on VB A macro language of VBA Script , Mainly used to extend Microsoft Office Software such as Excel The function of .Visual Basic for Applications(VBA) yes Visual Basic A macro language of , It's Microsoft that has developed and implemented common automation in its desktop applications (OLE) The programming language of the task . Mainly can be used to expand Windows The application function of , In particular Microsoft Office Software .

Where to record macros ?
1、 We can do it in Excel There is a small record macro button on the far left of the status bar , Press this button to start recording macros . If you don't see this small button in your status bar , You can right-click on the status bar , Check record macro in the pop-up menu .

2、 On the far right of the View tab in the ribbon , There is also a button to record macros , Click the drop-down to view 、 Record macros and set relative references .

3、 Macro actually belongs to VBA One of the tools , So we can “ development tool ” Tab find it , Because this tab is hidden by default , So the first step is to enable tabs . This is the third way .

Record macro
1、 We recorded our first macro with the example of automatic underline . After clicking the record macro button , We can see the macro setting window , I set a shortcut key for the recorded macro in the window Ctrl + Shift + U. After I hit ok , Just perform the steps we need normally . After double underlining the numbers , Click the record macro button in the lower left corner again to stop recording .

2、 Follow the above steps to record our first macro .
Run macro
1、 Recorded macros will have no effect if they are not executed . Next, let's see how to execute a macro that has been recorded .

2、 The first way is to select the cells we need to underline , Then find the view macro... From the macro group in the View tab , Then click Run . In this way, the selected cells are automatically underlined .

3、 Another way to execute macros , Is a shortcut key , This is a more efficient method . Remember the last step , Shortcut keys we set for macros ?Ctrl+Shfit +U, Let's try it now .
Isn't that easy ? Of course, what we record here is just a simple macro . When entering the recording state, we only did one step . If you do a set of operations , Then you can perform this set of operations automatically . In fact, every button on the interface can be understood as a macro , And that is Excel The built-in shortcut key can also be understood as the concept of macro . With the macro tool, we can define the shortcut keys we want for each operation by ourselves . I hope I can help you !
边栏推荐
- 我把整个研发中台拆分过程的一些心得总结
- [Android development IOS series] Language: swift vs kotlin
- 有奖调研 | 让虚拟照入现实的完美AR开发平台长什么样?
- 【MUDUO SOCKET】InetAddress 封装SOCKET地址类型
- Can the tidb of a single machine be used in the production environment?
- 中国首部《建筑行业电子签名应用白皮书》发布
- excel怎么选取特定数字求和?excel选中特定数字求和的方法
- Relationship between accuracy, recall and confidence
- 虚实相生,构建数智生活|HMS Core. Sparkle应用创新分论坛报名启动
- 开发者必读:2022年移动应用运营增长洞察白皮书
猜你喜欢
动态内存管理
Qinghai VR fire simulation drill system meets the training needs of many people and scenes
fiddler5+雷电模拟器4.0对app抓包设置
Office software cannot start normally 0xc0000142 how to solve it?
从概念到安全实践:软件供应链基础指南
一文详解|Go 分布式链路追踪实现原理
Introduction, installation and basic use of mongodb database
Interpreting the implementation principle of go Distributed Link Tracking
[pytoch] tensorboard usage: scalar curve, histogram, model structure diagram
cnvd_2019_22238
随机推荐
基于ESP32的RGB点阵显示器
Word文档怎么删除页眉页脚和横线
得物客服一站式工作台卡顿优化之路
Cadisplaylink, nstimer circular reference solution
检查日期是否在其他两个日期之间
This beta version of Typora is expired,please download and install a newer version.
How does excel perform multi criteria search? Method summary of Excel multi condition search function
分布式笔记(05)— 分布式锁之 etcd(分布式锁原理、etcd特点、分布式锁实现方案)
【MUDUO 日志系统1】Logger输出
Idea activation
《暴走 IT》第1话:来了个新同事
买量洞察与渠道评估,助力营销决策优化
Thread pool code and testing
【花雕体验】20 音乐可视化:ESP32_C3与WS2812B的系列尝试
I have seven schemes to realize web real-time message push, seven!
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
MongoDB数据库简介、安装和基本使用
How to add columns in PPT histogram
Prefer thread pool over multithreading
高并发之使用RateLimiter、Semaphore对访问资源进行限流