excel VBA control控件对象 用户定义类型未定义 如何解决?谢谢亲!

2025-04-14 12:38:17
推荐回答(1个)
回答(1):

Sub testcontrol1()
Dim ct
For Each ct In Me.Controls
If TypeName(ct) = "CommandButton" Then MsgBox ct.Caption
Next
End Sub