H
Hobs
I've added 4 form controls on to a Word 2002 SP3 document 2 Label(s) and 2
CommandButton(s) and assigned them names. I have then coded some logic on
the command button to return the text of label 1 and 2 respectively.
This works fine but when I open the document up in Word 2003 SP3, save it
and reopen the document in Word 2002 the 'Name' property has been randomly
transposed to different items so that what use to be called 'label1' is now
attached to a CommandButton and a CommandButton will have the name 'label2',
etc.
I have researched as much as possible but have found very little on this
topic. One URL
http://msdn.microsoft.com/en-us/library/aa140269(office.10).aspx says
'The VBA properties of ActiveX controls are not always stable. For example,
the Name property, given by Word upon insertion of the control, may change
unexpectedly. Again, later versions of Word are more stable than earlier
ones, especially Word 97. '
If this is the case how can I uniquely identify the controls on my document
if I can't rely on the 'Name' field being immutable?
CommandButton(s) and assigned them names. I have then coded some logic on
the command button to return the text of label 1 and 2 respectively.
This works fine but when I open the document up in Word 2003 SP3, save it
and reopen the document in Word 2002 the 'Name' property has been randomly
transposed to different items so that what use to be called 'label1' is now
attached to a CommandButton and a CommandButton will have the name 'label2',
etc.
I have researched as much as possible but have found very little on this
topic. One URL
http://msdn.microsoft.com/en-us/library/aa140269(office.10).aspx says
'The VBA properties of ActiveX controls are not always stable. For example,
the Name property, given by Word upon insertion of the control, may change
unexpectedly. Again, later versions of Word are more stable than earlier
ones, especially Word 97. '
If this is the case how can I uniquely identify the controls on my document
if I can't rely on the 'Name' field being immutable?