P
Paul J
I am creating a locked Word 2003 document containing a number of
(un-bookmarked) Text Form Fields.
Owing to a problem with the limited availability of number formats for the
Text Form Field (see previous Discussion Group question), I need to run a
Macro on exiting the field to reformat the Result. The Macro will something
like the following:
Sub FieldFormatter()
With ActiveDocument
Dim X as Integer ' Item number of the Text Form Field that ran the
Macro
X = ?????????????????????????????????? ' WHAT? HELP!
.FormFields(X).Result = Format(.FormFields(X).Result, "£#,##0")
End With
End Sub
Can anyone please advise me as to how I can identify the Item number for the
FormField (Text Form Field) that called the Macro?
All contributions will be gladly accepted!
Paul J
(un-bookmarked) Text Form Fields.
Owing to a problem with the limited availability of number formats for the
Text Form Field (see previous Discussion Group question), I need to run a
Macro on exiting the field to reformat the Result. The Macro will something
like the following:
Sub FieldFormatter()
With ActiveDocument
Dim X as Integer ' Item number of the Text Form Field that ran the
Macro
X = ?????????????????????????????????? ' WHAT? HELP!
.FormFields(X).Result = Format(.FormFields(X).Result, "£#,##0")
End With
End Sub
Can anyone please advise me as to how I can identify the Item number for the
FormField (Text Form Field) that called the Macro?
All contributions will be gladly accepted!
Paul J