J
Jerry Bodoff
Hi,
Environment: WORD2000, XP Home Edition
I wish to access the properties of any control on a User
Form for eventually listing the control and associated
properties. To get and process each control on the form
I have the following Subs:
Private Sub ProcessForm(FormName as Variant)
Dim FormObj as Object
Dim FormCtrl As Object
Set FormObj = UserForms.Add(FormName)
For Each FormCtrl In FormObj.Controls
Call ProcessControl(FormCtrl)
Next
Set FormObj = Nothing
End Sub
Private Sub ProcessControl(ControlObj As Object)
Dim ????
Dim PropertyName as Property
Set ???? = ????
For Each PropertyName in ????
Debug.Print PropertyName.Name & _ | Prop Name?
Space(4) & _
PropertyName.Value | Prop Value?
Next
End Sub
The question is I do not know what to program for the
???'s. I have searched VBA Help, FAQ's, Knowledge Base
and the Web but cannot seem to find anything that would
give me a clue. I know I missed the boat somewheres but
I am not sure what boat.
Any help would be greatly apprciated.
Jerry B.
Environment: WORD2000, XP Home Edition
I wish to access the properties of any control on a User
Form for eventually listing the control and associated
properties. To get and process each control on the form
I have the following Subs:
Private Sub ProcessForm(FormName as Variant)
Dim FormObj as Object
Dim FormCtrl As Object
Set FormObj = UserForms.Add(FormName)
For Each FormCtrl In FormObj.Controls
Call ProcessControl(FormCtrl)
Next
Set FormObj = Nothing
End Sub
Private Sub ProcessControl(ControlObj As Object)
Dim ????
Dim PropertyName as Property
Set ???? = ????
For Each PropertyName in ????
Debug.Print PropertyName.Name & _ | Prop Name?
Space(4) & _
PropertyName.Value | Prop Value?
Next
End Sub
The question is I do not know what to program for the
???'s. I have searched VBA Help, FAQ's, Knowledge Base
and the Web but cannot seem to find anything that would
give me a clue. I know I missed the boat somewheres but
I am not sure what boat.
Any help would be greatly apprciated.
Jerry B.