ユーザーフォームの氏名のテキストで「様」を
いつもお世話になります。
WIN7 EXCELL2010 です。
ユーザ―フォームのVBAが下記です。
御指導を仰ぎたいのは
TextBox3.Text = "" ここに氏名が入りますがユーザーフォームで、
例えば「石井 徹」と入力したら”様”とデーター欄に「石井 徹様」となるには可能でしょうか。
もし可能ならばどうすればいいのかをご教授いただけないでしょうか。
Private Sub CommandButton1_Click()
'
y = 2
Do While Cells(y, 2) <> ""
y = y + 1
Loop
Cells(y, 1) = TextBox1.Text
Cells(y, 2) = TextBox2.Text
Cells(y, 3) = TextBox3.Text
Cells(y, 4) = TextBox4.Text
Cells(y, 5) = TextBox5.Text
Cells(y, 6) = TextBox6.Text
Cells(y, 7) = TextBox7.Text
Cells(y, 8) = TextBox8.Text
Cells(y, 9) = TextBox9.Text
Cells(y, 10) = TextBox10.Text
Cells(y, 11) = TextBox11.Text
Cells(y, 12) = TextBox12.Text
Cells(y, 13) = TextBox13.Text
TextBox1.Text = Format(Date, "mm/dd")
TextBox2.Text = ""
TextBox3.Text = "" ここに氏名が入ります。
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox1.SetFocus
End Sub
是非よろしくお願いします。
お礼
補足にまで答えてくださりありがとうございます。 お礼遅くなり、大変申し訳ありません。