返回列表 上一主題 發帖

[發問] 關於 UserForm1.Controls.Add "Forms.CommandButton.1" 問題請教

[發問] 關於 UserForm1.Controls.Add "Forms.CommandButton.1" 問題請教

ii = Sheets("sheet2").Range("m1").Value
For ii = 1 To ii
    UserForm1.Controls.Add "Forms.CommandButton.1", "CommandButton" & ii, True
Next
以上執行結果如下圖


請教各位先拜 如何按 各個 CommandButton 執行巨集呢?
是否要用到  物件特別模組  有勞大大囉   謝謝!!

回復 3# sunnyso


    感謝您的指導  我先研究一下

TOP

回復 3# sunnyso


    感謝您 已經可以使用

TOP

        靜思自在 : 屋寬不如心寬。
返回列表 上一主題