Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Using Macros In Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rickbrownaz - 21 Mar 2007 00:40 GMT
I am trying to create a macro that will permit use of the ENTER key to
navigate between form fields created in MS Word 2003 instead of the detault
TAB key.  I have followed KB articles 212536 and 211219, but nothing seems to
work.

Is there an easier way or am I just missing something?
Signature

Rick

Doug Robbins - Word MVP - 21 Mar 2007 14:15 GMT
I believe the information in 211219 is essentially the same as that at:

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

which was for Word 97, but I have used in in later versions.

I suspect that there is something not quite right with what you have done.
Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I am trying to create a macro that will permit use of the ENTER key to
> navigate between form fields created in MS Word 2003 instead of the
[quoted text clipped - 4 lines]
>
> Is there an easier way or am I just missing something?
rickbrownaz - 28 Mar 2007 01:00 GMT
It seems to work ok on my computer now, but when I save it and e-mail it to a
user it doesn't.  I have the macro assigned to the document not the
normal.dot.  Is there something else I'm missing?
Signature

Rick

> I believe the information in 211219 is essentially the same as that at:
>
[quoted text clipped - 11 lines]
> >
> > Is there an easier way or am I just missing something?
Doug Robbins - Word MVP - 28 Mar 2007 16:00 GMT
Quite likely the user has their Macro Security Level set to High in which
case the macros will just be dumped from the doucment without their being
advised.  If they set the Level to Medium, they will be given the choice of
allowing or disallowing the macros.  You will have to convince them that the
macros are safe.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> It seems to work ok on my computer now, but when I save it and e-mail it
> to a
[quoted text clipped - 18 lines]
>> >
>> > Is there an easier way or am I just missing something?
rickbrownaz - 30 Mar 2007 05:58 GMT
Doug--

That was one of the first things I checked and it was set to high security.  
When I lowered it ithe user did receive the prompt to allow macros, but
pressing the enter key continued to enter lines instead of navigating between
input fields.
Signature

Rick

> Quite likely the user has their Macro Security Level set to High in which
> case the macros will just be dumped from the doucment without their being
[quoted text clipped - 24 lines]
> >> >
> >> > Is there an easier way or am I just missing something?
Rob - 21 Mar 2007 14:33 GMT
This is kind of hackish but it does what you want.

Private Sub Document_New()
   CustomizationContext = ActiveDocument
   KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyReturn), KeyCategory:= _
       wdKeyCategoryMacro, Command:="SendTab"
End Sub

Sub SendTab()
SendKeys "{TAB}"
End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.