Anthony904
IS-IT--Management
I have a word template with some macros that move data from one data form field to another with a button...
When I run this .dot file in word 2000 it works fine.. When I try to run it in Word 97.. I get the error below..
Error:
Run-Time Error '5941':
The requested member of the collection does not exist.
The error points to is the function I use to move data..
Is there something wrong with this code? If so, how can I fix this?
Thanks
When I run this .dot file in word 2000 it works fine.. When I try to run it in Word 97.. I get the error below..
Error:
Run-Time Error '5941':
The requested member of the collection does not exist.
The error points to is the function I use to move data..
Code:
Function mShift(s1 As String, s2 As String, d1 As String, d2 As String)
'This Function moves field s1,s2 to fields d1,d2
FormFields(d1).Result = FormFields(s1).Result
FormFields(d2).Result = FormFields(s2).Result
FormFields(s1).TextInput.Clear
FormFields(s2).TextInput.Clear
End Function
Is there something wrong with this code? If so, how can I fix this?
Thanks