Private Sub Workbook_Open() Sheet1.CommandButton1.Caption = "実行" Sheet1.Label1.Caption = "花の名前を入力してください" Sheet1.TextBox1.Text = "" End Sub
Sub Macro1() res = Sheet1.TextBox1.Text dp = 1 End Sub