This macro will add 30 seconds to the close process. I can not see why it would take that long.
Any ideas?
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.ScreenUpdating = False
Sheets("START").Visible = xlSheetVisible
Application.WindowState = xlMaximized
For Each ws In Worksheets
If ws.Name <> "START" Then
ws.Visible = False
End If
Next ws
Application.ScreenUpdating = True
Application.ThisWorkbook.Saved = True
Application.Quit
End Sub
Any ideas?
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.ScreenUpdating = False
Sheets("START").Visible = xlSheetVisible
Application.WindowState = xlMaximized
For Each ws In Worksheets
If ws.Name <> "START" Then
ws.Visible = False
End If
Next ws
Application.ScreenUpdating = True
Application.ThisWorkbook.Saved = True
Application.Quit
End Sub