热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

用于在当前工作表中添加命令按钮的vba代码-vbacodetoaddacommandbuttonincurrentsheet

Whatisthevbacodetoaddacommandbuttononcurrentworksheet,theninsertacodetorunwhenever

What is the vba code to add a command button on currentworksheet, then insert a code to run whenever that button is clicked?

什么是在currentworksheet上添加命令按钮的vba代码,然后插入代码以便在单击该按钮时运行?

advance thanks.

Note: the task for the command button click is : select workbook name 123(which is already opend), select worksheet name ABC then select range a123.

注意:单击命令按钮的任务是:选择工作簿名称123(已经打开),选择工作表名称ABC然后选择范围a123。

1 个解决方案

#1


0  

I have an example here to add buttons and assign macros to them. Create Buttons and assign macros to them

我在这里有一个例子来添加按钮并为它们分配宏。创建按钮并为它们分配宏


推荐阅读
author-avatar
手机用户2602906791
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有