M
Martin Newman
In WOrdXP
I have a word form (not a user form, but a word doicument created using the
form facilities) in which I wish to manipulate the controls I have in a
form. If I use code like:
Dim ctlFrom As Control
Set ctlFrom = Me..lstbxSubjectSelected
it doesn't work, type mismatch as the right hand side is evaluated to the
value of the default property of the control rather than the control itself.
And as there is no COntrols collection for a WOrd document code like this
fails too:
Set ctlFrom = Me.Controls("lstbxSubjectSelected")
How do I achieve this.
Thanks
M
I have a word form (not a user form, but a word doicument created using the
form facilities) in which I wish to manipulate the controls I have in a
form. If I use code like:
Dim ctlFrom As Control
Set ctlFrom = Me..lstbxSubjectSelected
it doesn't work, type mismatch as the right hand side is evaluated to the
value of the default property of the control rather than the control itself.
And as there is no COntrols collection for a WOrd document code like this
fails too:
Set ctlFrom = Me.Controls("lstbxSubjectSelected")
How do I achieve this.
Thanks
M