跳到主要内容

如何插入宏按钮以在Excel中运行宏?

您可以使用Microsoft Excel VBA加载有用的宏。 每次应用宏时,都必须按为此宏设置的键盘快捷键,或单击 查看 > > 选择 适当的宏> 运行。 您想到了应用宏的简便方法吗? 是的,您可以创建一个按钮以在功能区的QAT或Microsoft Excel的工作区中运行特定的宏。


在当前工作簿的工作区域中插入宏按钮

本节将介绍有关在当前工作簿的工作区域中插入宏按钮的详细教程。

1.首先,显示 开发商 功能区中的选项卡如下:
(1)在Excel 2010或更高版本中,请单击 文件 > 附加选项 > 自定义功能区,请参见以下屏幕截图。 (查看如何在Excel 2007中)
(2)在右侧,检查 开发商 选项,然后单击 OK 按钮。

如果您使用的是Excel 2007,请点击 办公按钮 > Excel选项> 热门,然后检查 在功能区中显示“开发人员”选项卡 在选项 使用Excel的主要选项 部分。

2.然后将宏按钮插入工作区。 请点击 开发商 > 插页,然后在 表单控件 部分,请参见屏幕截图:

3.在工作区中绘制一个按钮。

4.然后弹出“分配宏”对话框,选择要分配给该内置按钮的一个宏,然后单击 OK 按钮。

现在,该按钮可以应用宏了。

5.根据需要格式化宏按钮是可选的。
如果要使宏按钮易于理解并看起来不错,可以对其进行格式化。 您可以通过右键单击按钮来更改按钮上的文本,更改分配宏,以及使用上下文菜单格式化控制按钮。

轻松一次在Excel中插入多个复选框或选项按钮

通常我们一次只能在一个单元格中插入一个复选框或选项按钮,在Excel中步骤繁琐。但是Excel的Kutools 批量插入复选框 实用程序和 批量插入选项按钮 实用程序可帮助Excel用户快速将多个复选框或选项按钮插入所有选定的单元格。


广告插入复选框选项按钮1

在功能区上的快速访问工具栏中插入宏按钮

如果在当前工作簿的工作区中插入宏按钮,则只能在此工作簿中应用此宏。 但是,如果在功能区上的“快速访问”工具栏中添加了宏按钮,则可以在所有工作簿中应用宏。

1。 点击 箭头 功能区顶部的按钮,然后选择 更多命令… 下拉列表中的项目。 请参见以下屏幕截图:

2.在“ Excel选项”对话框中,选择 项目在 选择命令从 下拉框,请参见以下屏幕截图;

3.选择并突出显示要分配给新按钮的宏;

4。 点击 地址 按钮。

5.现在,选定的宏名称将添加到右侧框中。 在右侧框中选择宏名称。 请参阅以下屏幕截图。

6。 点击 修改 按钮。

7.在 修改按钮 对话框中,选择一个按钮符号。

8。 点击 OK 按钮。

然后返回功能区中的QAT,您将获得分配给在宏中选择的宏的新按钮。 .


演示:在工作表或快速访问工具栏中插入宏按钮


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

快速从活动工作簿或许多文件夹中的所有工作簿中删除所有宏

Kutools for Excel 为 Excel 用户提供了两种解决方法,可以轻松删除工作簿中的所有宏。

  • A. 删除所有宏:使用此实用程序,只需单击一下即可删除活动工作簿中的所有宏。
  • B. 批量删除所有宏:此实用程序可以从多个文件夹中批量删除多个工作簿的所有宏,而无需完全打开这些工作簿! 看截图:
  • 广告删除宏1

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!

Comments (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
It looks like it's easy to do it. If I want to insert a macro, i want to give it this function (click 1 time on it and it turn blue with the comment ON) (click a second time on it and it turn white with comment OFF) How can I do this? tHANKS
This comment was minimized by the moderator on the site
Thanks for these solutions

.
This comment was minimized by the moderator on the site
Hello there, i am interested ebaccdafdaafcbbd
This comment was minimized by the moderator on the site
I have already Macro file and its work properly but its run one by on i just one only one click and run my all Macro automatically.
This comment was minimized by the moderator on the site
Many thanks It is very helpful to start
This comment was minimized by the moderator on the site
How do I determine which macro is associated with a button?
This comment was minimized by the moderator on the site
I want to include individual KU commands in a macro. How can I do that? So far all I can get is Application.Run "'ICD-705.xlsm'!KU" I want to be able to select a command withing KU to execute.
This comment was minimized by the moderator on the site
Hello! I am trying to assign macro to a button but encountered the following error message: Formula is too complex to be assigned to object. What should I do? Best Regards, Olivia Tan
This comment was minimized by the moderator on the site
I have a macro and need to extend the cells that calculate it goes to 245 and i would like ot to go to 1000
This comment was minimized by the moderator on the site
I'm opening an earlier version of Excel in WIN7, Excel 2010. All my macro control buttons are flashing like a marquis. How do I stop this?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations