G
Guest
OK, this should be a fairly simple question, but I'm stuck. Quite simply, I
want to generate a list containing the name of each control on a form. I was
thinking something like
Public Sub EnumerateControls()
Dim ctl As Control
For Each ctl In Me.Controls
Debug.Print ctl.Name
Next
End Sub
Unfortunately, Name doesnt seem to be a property of Control objects. Any
thoughts? And yes, this is just a stepping stone to greater uses, but it's
good to start simple. Thanks,
Matt Martin
want to generate a list containing the name of each control on a form. I was
thinking something like
Public Sub EnumerateControls()
Dim ctl As Control
For Each ctl In Me.Controls
Debug.Print ctl.Name
Next
End Sub
Unfortunately, Name doesnt seem to be a property of Control objects. Any
thoughts? And yes, this is just a stepping stone to greater uses, but it's
good to start simple. Thanks,
Matt Martin