Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExitMacro from Form Field - Which Field was Active?
Message
De
18/08/2003 17:55:40
 
 
À
Tous
Information générale
Forum:
Microsoft Office
Catégorie:
Word
Titre:
ExitMacro from Form Field - Which Field was Active?
Divers
Thread ID:
00821230
Message ID:
00821230
Vues:
62
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
Fil
Voir

Click here to load this message in the networking platform