I have successfully made forms and inserted the macros to
cause the cursor to go to the next field when one keys
the enter key. Recently I changed to Windows XP, but
still use MS Word 2000. Why am I now getting the error
message? What can be done about it? I am a beginner at
Visual Basic.
Word Heretic - 28 Feb 2004 09:14 GMT
G'day "OMW" <anonymous@discussions.microsoft.com>,
I aint savvy with the err #, post the line that boges out on ya
Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com
steve from wordheretic.com (Email replies require payment)
OMW reckoned:
>I have successfully made forms and inserted the macros to
>cause the cursor to go to the next field when one keys
>the enter key. Recently I changed to Windows XP, but
>still use MS Word 2000. Why am I now getting the error
>message? What can be done about it? I am a beginner at
>Visual Basic.
Suzanne Lumsden - 22 Feb 2005 18:12 GMT
I have the same problem using code to reprogram the enter key to act as the
tab key.
The error occurs as you are exiting the template file
details are:
Sub AutoClose()
CustomizationContext = ActiveDocument.AttachedTemplate
FindKey(KeyCode:=BuildKeyCode(wdKeyReturn)).Disable
' Disables prompt to save template changes.
Templates(1).Save
and it complains about line 3 above "FindKey...
any ideas?
Usin Word 2000 sp3