Would the following Macro help you?
(以下宏会帮助你吗?)
Sub activateSheet(sheetname As String)
'activates sheet of specific name
Worksheets(sheetname).Activate
End Sub
Basically you want to make use of the .Activate function.
(基本上你想要使用.Activate函数。)
Or you can use the .Select function like so: (或者您可以像这样使用.Select函数:)
Sub activateSheet(sheetname As String)
'selects sheet of specific name
Sheets(sheetname).Select
End Sub
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…