vbA Excel
你好,沼泽人,我有这个代码&039;缩放到总宏
&039;将您带到物料清单工作表中的项目总数
Sub Zoom_to_total()
On Error GoTo the Error 1';结束错误表1(“物料清单”)上的子项。选择'如果不是物料清单工作表范围(“EF87”),则出错。选择错误1:结束我的问题
为什么它启动sheet1然后运行代码 ;我不记得以前发生过这种情况 ;这是突然发生的
感谢您的帮助
您是否试图选择工作表上的单元格EF87;物料清单
如果是,I';我不知道你为什么要使用Sheet1。你应该可以这样做:
' Zoom_To_Total Macro
'Takes you to a grand total of items in the Bill of materials work sheet
Sub Zoom_to_total()
On Error GoTo theerror1 'End the Sub on error
Worksheets("Bill of Materials").Select'Error If not Bill of Materials Work Sheet
Range("EF87").Select
theerror1: End
End Sub
这似乎是office 2013版,我现在已经修复了。谢谢你的回复。
页:
[1]