2022-12-30から1日間の記事一覧

VBA フォームの[×]ボタンで閉じられなくする

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then MsgBox "[閉じる]ボタンを使用してください" Cancel = True End If End Sub ネタ元 www.moug.net