各位先進大家好!抱歉又打擾了。又有語法的問題想請教,小弟我已經寫了有關「評語」表單的語法,內容構想是這樣,只要使用者點按鍵,就會出現選擇評語的listbox,大致語法如下:
Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
a1 = UserForm1.ListBox1.Value
Sheets("評語").Range("d1") = a1
End Sub
Sub UserForm_Activate()
With UserForm1.ListBox1
.AddItem "品學兼優"
.AddItem "友愛同學"
.AddItem "急公好義"
.AddItem "生性懶散"
End With
End Sub