Private Sub Workbook_Open() Sheet1.CommandButton1.Caption = "実行" Sheet1.Label1.Caption = "花の名前をチェックしてください" Sheet1.CheckBox1.Caption = "バラ" End Sub
Sub Macro1() res = Sheet1.CheckBox1.Value dp = 1 End Sub