返回列表 上一主題 發帖

[轉貼] 依照變數更改CommandButton底色

[轉貼] 依照變數更改CommandButton底色

請教各位大大:

若在某一表單中,有 CommandButton1 ~ 20,
今想依照變數 i 的結果進行底色更改,
例如 i=5 時,將 CommandButton1 更改底色,
以此類推~
試過 "CommandButton" & i.BackColor = &HFF80FF ...失敗,
因為物件好像不能這樣使用.但不曉得該如何修改?
感謝~

oobird前輩回覆的檔案 sample.rar (15.13 KB)

        靜思自在 : 不要隨心所欲,要隨心教育自己。
返回列表 上一主題