Private Sub Workbook_NewSheet(ByVal Sh As Object)
Dim sheet_template As String
sheet_template = "Sheet1"
sh_name = Sh.Name
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Sh.Delete
Worksheets(sheet_template).Copy After:=Worksheets(sheet_template)
ActiveSheet.Name = sh_name
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub
Private Sub Workbook_NewSheet(ByVal Sh As Object)
Dim temp As XlSheetVisibility
Dim sheet_template As String
sheet_template = "Sheet1"
sh_name = Sh.Name
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Sh.Delete
If Worksheets(sheet_template).Visible <> xlVisible Then
temp = Worksheets(sheet_template).Visible
Worksheets(sheet_template).Visible = True
Worksheets(sheet_template).Copy After:=Worksheets(sheet_template)
ActiveSheet.Name = sh_name
Worksheets(sheet_template).Visible = temp
End If
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub