vba 在 97-2003 工作表上打开特定的工作表 Excel

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4809055/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 12:34:20  来源:igfitidea点击:

Open specific Worksheet Excel on 97-2003 Worksheet

excelvbams-office

提问by Piyush Mattoo

I want to open a specific worksheet every time and not the one which was saved last. I have the following macro in a Microsoft Office Excel 97-2003 Worksheet (This Workbook --> Workbook, Open):

我想每次都打开一个特定的工作表,而不是最后保存的工作表。我在 Microsoft Office Excel 97-2003 工作表(此工作簿 --> 工作簿,打开)中有以下宏:

Private Sub Workbook_Open()
Sheets("Charts_Month").Activate End Sub

But apparently this doesn't work. How can I fix this?

但显然这行不通。我怎样才能解决这个问题?

采纳答案by akd

Private Sub Workbook_Open()
Sheets("Charts_Month").Activate
End Sub