Dear Suzanne,
Thank you for the macro. It works great except there is a bug report.
After exiting the template in Word 2000, the following Microsoft Visual
Basic runtime error box appears:
Run-time error '5980':
The context cannot be modified.
If you click on the "Debug" button it yellow highlights the macro script for
macro #4, the "AutoClose" macro:
FindKey (KeyCode:=BuildKeyCode(wdKeyReturn)).Disable
The other option is to click the "End" button.
Thanks for your help!
Dave
"Suzanne S. Barnhill" wrote:
See €œWD: How to Code ENTER Key to Move to Next Field in Form€
http://support.microsoft.com?kbid=211219
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
"daveocampo" wrote in message
...
Hi,
I created a Word document template (.dot) with Form Fields, then I saved
the
template in Protected mode and restrict the user to only allow Filling-In
the
Forms Fields; however, if the user hits the Enter key, the form will
generate
a line break and distort the standardized document template. Is there a
macro or function in Word to disable the Enter key in a .dot form field?
If
not, maybe MS Offfice Development Team can add this feature to the Form
Field
Propeties dialog box. Thanks!
David