Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExitMacro from Form Field - Which Field was Active?
Message
From
18/08/2003 17:55:40
 
 
To
All
General information
Forum:
Microsoft Office
Category:
Word
Title:
ExitMacro from Form Field - Which Field was Active?
Miscellaneous
Thread ID:
00821230
Message ID:
00821230
Views:
63
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
Reply
Map
View

Click here to load this message in the networking platform