程序代码:
Dim sh as WorkSheet On Error Resume Next Set sh = Nothing Set sh = Sheets("空白") On Error Goto 0 If sh is Nothing Then Set sh = Sheets.Add sh.Name = "空白" End If sh.Visible = False
二、如果禁用了宏,这些代码都不会执行。
三,由于代码是在工作簿里面的,复制工作表到别的工作簿不会把宏带过去。
Dim sh as WorkSheet On Error Resume Next Set sh = Nothing Set sh = Sheets("空白") On Error Goto 0 If sh is Nothing Then Set sh = Sheets.Add sh.Name = "空白" End If sh.Visible = False