Sub Macro1()
'
' Macro1 Macro
'
' 快速鍵: Ctrl+l
Application.DisplayAlerts = False
Sheets("班級壹").Select
ActiveWindow.SelectedSheets.Delete
Sheets("班級貳").Select
ActiveWindow.SelectedSheets.Delete
Sheets("班級參").Select
ActiveWindow.SelectedSheets.Delete
Sheets("班級肆").Select
ActiveWindow.SelectedSheets.Delete
Sheets("班級五").Select
ActiveWindow.SelectedSheets.Delete
Sheets("班級六").Select
ActiveWindow.SelectedSheets.Delete
End Sub
Sub Macro2()
'
' Macro2 Macro
'
' 快速鍵: Ctrl+q
Sub CloseAllWorkbooks()
Dim Book As Workbook
For Each Book In Workbooks
If Book.Name <> ThisWorkbook.Name Then
Book.Close savechanges:=True
End If
Next Book
ThisWorkbook.Close savechanges:=True
End Sub
End Sub
Sub Macro3()
'
' Macro3 Macro
'
' 快速鍵: Ctrl+e
Application.Run "PERSONAL.XLSB!Macro1"
Application.Run "PERSONAL.XLSB!Macro2"
End Sub