word macro runtime error 5980

T

traffic

Using the macro which disables the enter key in a form -

http://support.microsoft.com/kb/q187985/

this works great on 3 computers but I get an error on the 4th comupter when
trying use the form. After enabling the macro I get- runtime error 5980
context cannot be
modified. Debug brings me to

KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyReturn),
KeyCategory:=wdKeyCategoryMacro, Command:="EnterKeyMacro"

What setting could be differnt of the 4th computer (the one I need to use
the most) - I feel like I have looked everywhere and all is the same as
others.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?dHJhZmZpYw==?=,
Using the macro which disables the enter key in a form -

http://support.microsoft.com/kb/q187985/

this works great on 3 computers but I get an error on the 4th comupter when
trying use the form. After enabling the macro I get- runtime error 5980
context cannot be
modified. Debug brings me to

KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyReturn),
KeyCategory:=wdKeyCategoryMacro, Command:="EnterKeyMacro"

What setting could be differnt of the 4th computer (the one I need to use
the most) - I feel like I have looked everywhere and all is the same as
others.
Hard to say...

I guess the first thing I'd try would be to unprotect (a copy of) the document
and manually assign a keyboard shortcut (can't use Enter, but something else).
See if Word will allow you to change any keyboard assignments at all on this
machine, in this document.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top