P
Paul Brown
Hello all,
I'm trying to call a macro based on the input to a text form field. When run
on exit, if the formfield says sterling then run SterlingAccount. If it says
anything else then run CurrencyAccount. The code below is what I've adapted
from calling a macro from a dropdown list. Needless to say it brings up an
error - can anyone offer any guidance?
================================
Dim mydrop
Set mydrop = ActiveDocument.FormFields(1)
If mydrop.TextInput(mydrop.TextInput.Value).Name = "Sterling" Then
Call SterlingAccount
Else
Call CurrencyAccount
End If
=================================
Many thanks.
Paul.
I'm trying to call a macro based on the input to a text form field. When run
on exit, if the formfield says sterling then run SterlingAccount. If it says
anything else then run CurrencyAccount. The code below is what I've adapted
from calling a macro from a dropdown list. Needless to say it brings up an
error - can anyone offer any guidance?
================================
Dim mydrop
Set mydrop = ActiveDocument.FormFields(1)
If mydrop.TextInput(mydrop.TextInput.Value).Name = "Sterling" Then
Call SterlingAccount
Else
Call CurrencyAccount
End If
=================================
Many thanks.
Paul.