Information générale
Titre:
ExitMacro from Form Field - Which Field was Active?
I'm trying to write some generic macros that can be called from several different form fields' exit events. What I'm trying to do is figure how out in the macro which form field was just exited.
Dim objFF As FormField
If Selection.FormFields.Count = 0 Then
MsgBox ("No fields.")
Else
For Each objFF In Selection.FormFields
MsgBox (objFF.Name + " is: " + objFF.Result)
Next
End If
The above appears to work for Checkboxes, reporting just the box exited. But for TextInput objects, Selection's FormFields collection has a count of 0 when you exit the box.
Is there some other way to know where I am in the form?
TIA,
Randy
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement