作者KnightG ( ~ 風 ~ )
看板Visual_Basic
標題[VBA ] 請問一下 如何用index管理Excel VBA內的物件
時間Thu Oct 15 22:51:20 2009
請教一下
如果在Excel內建很多CommandButton
有辦法以index的方式管理每一個button物件嗎
類似
For i = 1 to 10
CommandButton(i).Caption = i
Next i
小弟上其他網站有找到一個指令 Me.Controls("CommandButton"&i).Caption
但寫出來沒辦法跑
請幫忙指點一下 感謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.116.236.68