If ct.Name Like "CommandButton*" Then ct.Visible = False
Next
.PrintForm
For Each ct In .Controls
If ct.Name Like "CommandButton*" Then ct.Visible = True
Next
End With
End Sub
複製代碼
作者: solely 時間: 2010-9-19 00:19
回復 2#Hsieh
謝謝版主~
依樣畫葫蘆我把這句
If ct.Name Like "CommandButton*" Then ct.Visible = False
改成
If ct.Name Like "ComboBox*" Then ct.DropButtonStyle = 0
也可以把ComboBox的小箭頭消掉XD
所以說...我幫指令按鈕、清單取名字...是多此一舉-.-""..只會增加寫程式的困擾~作者: Hsieh 時間: 2010-9-19 00:28