﻿Sub Macro4()
	Dim selectedButton As Long
	selectedButton = MsgBox("処理を実行しますか？ ", vbYesNo)
	If selectedButton = vbCancel Then
		MsgBox "処理を中断しました"
		Exit Sub
	End If
	MsgBox "処理が終了しました"
End Sub