- 帖子
- 57
- 主題
- 25
- 精華
- 0
- 積分
- 87
- 點名
- 0
- 作業系統
- xp2
- 軟體版本
- office2003
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2010-9-16
- 最後登錄
- 2023-11-29
|
[發問] 關於 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 執行巨集呢?
是否要用到 物件特別模組 有勞大大囉 謝謝!! |
|