VBA代码调用不同的工作表命令按钮 [英] VBA code to call different sheet command button

查看:267
本文介绍了VBA代码调用不同的工作表命令按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要从另一个工作表(在同一工作簿中)调用命令按钮的VBA代码吗?

VBA code to call command button from another sheet(in same workbook)?

假设我有两个命令按钮,第一个在Sheet1中,第二个在Sheet2中.然后如何从sheet1调用第二个sheet2命令按钮.

Suppose I have two command button and one in Sheet1 and second in Sheet2. Then how to call second sheet2 command button from sheet1.

推荐答案

您需要清除宏名称的私有部分,然后才能调用它.

You need to clear the private part of the Macro name, then you can call it.

这篇关于VBA代码调用不同的工作表命令按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆