Public Function Sheet_Exist(shtName) As Boolean
Dim sht1 As Worksheet
On Error GoTo err_lab1
Set sht1 = Worksheets(shtName)
Sheet_Exist = True
Set sht1 = Nothing
err_lab1:
End Function
在隐藏/显示/引用 某个Sheet前,先判定一下,例如:
If Sheet_Exist(st) Then ......
End If