E
Ed
I want to print out the values of certain aspects of the various controls on
a user form. However, different controls support values that other controls
do not. So if I try to get the ".text" value of a checkbox, I will get an
error. Likewise, if I try to get a ".caption" value of a textbox = error.
Is there a way to determine the 'type' of control that is being 'seen,'
something like:
For Each oControl in MyForm.Controls
atype=oControl.type (this is not a valid value) <<<<<
If atype="Checkbox" then
'do this
elseif atype = "Textbox" then
'do this
etc.
a user form. However, different controls support values that other controls
do not. So if I try to get the ".text" value of a checkbox, I will get an
error. Likewise, if I try to get a ".caption" value of a textbox = error.
Is there a way to determine the 'type' of control that is being 'seen,'
something like:
For Each oControl in MyForm.Controls
atype=oControl.type (this is not a valid value) <<<<<
If atype="Checkbox" then
'do this
elseif atype = "Textbox" then
'do this
etc.