【Excel VBA】ユーザーに×ボタンで閉じさせない

に公開

×ボタンでExcelを終了させない方法

Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Cancel = True
End Sub

Discussion