Type myT N(2) As Integer S(2) As String End Type Public myG As myT Sub Macro1() myG.N(0) = 0 Load UserForm1 UserForm1.CommandButton1.Caption = "OK" UserForm1.CommandButton2.Caption = "キャンセル" UserForm1.Label1.Caption = "花の名前を入力してください" UserForm1.Show myG.S(0) = UserForm1.TextBox1.Text dp = 1 Unload UserForm1 End Sub(3)dp = 1の行をクリックします。