richardtsa
Programmer
Is there a method to list all the command buttons used in an application that was written in vb
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim frm As Form
Dim ctl As Control
Load Form1
Load Form2
[COLOR=green]'(Load all your forms here)[/color]
For Each frm In Forms
For Each ctl In frm.Controls
If TypeOf ctl Is CommandButton Then
MsgBox frm.Name & vbCrLf & ctl.Name
End If
Next ctl
Next frm