View Single Post
 
Old 12-05-2013, 06:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,371
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by fumei View Post
if both documents are generated from the same template, and that template has the keybinding AND the keybinding is set with the Document_New event - when the template creates a new document - then the keybinding will work in both.
...
I must say though that using the Enter key like this is very limited unless you also add code to make the Enter key acts like a normal Enter key. Otherwise it will NEVER act like a normal enter key.
Granted, but this is a long-established technique for making the Enter key behave in the same way as the Tab key when working with formfields. What's been posted so far should be part of a larger project. See: http://support.microsoft.com/kb/211219/en-au

Depending on what template is being used, the code may need to be coupled with an Application.DocumentChange Event macro that detects when the user switches documents and does some testing to determine whether to enable or disable the keybindings as per the code in the link.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote