通过工作表代号来引用VBComponent
我正在尝试使用VBComponents("Sheet1").CodeModule.InsterLines...
函数。
但是,VBComponent想从对象资源pipe理器获取模块名称,而不是选项卡的名称。 有没有办法find这个Activesheet
?
为了说明,在下面的图片中,如果我使用VBComponents("Sheet1").CodeMo...
,它将打印到标记为1的模块。我希望打印到名为2的模块。
我如何find与工作表关联的模块名称?
有没有办法find这个activesheet?
这是你想要的吗?
Activesheet.Codename