Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
skygazerkm skygazerkm is offline
external usenet poster
 
Posts: 2
Default Tab order / ExitMacros created, but still skipping......

Word 2003
I have a form with several text fields, drop downs and check boxes that I
have added exitmacros to - thanks to the information on other postings!! I
am still having a problem with them going in order, but only a few fields
keep getting skipped. I cannot figure out what I did wrong. I am very new
to forms in Word, so bear with me. I did individual exitmacros because the
strings and "togoto" seemed to complicated for my beginner knowledge. This
is what I have created.

Option Explicit

Sub ExitText1()
ActiveDocument.Bookmarks("Text2").Range.Fields(1). Result.Select
End Sub

Sub ExitText2()
ActiveDocument.Bookmarks("Dropdown1").Range.Fields (1).Result.Select
End Sub

Sub ExitText3()
ActiveDocument.Bookmarks("Text4").Range.Fields(1). Result.Select
End Sub

Sub ExitText4()
ActiveDocument.Bookmarks("Text16").Range.Fields(1) .Result.Select
End Sub

Sub ExitText5()
ActiveDocument.Bookmarks("Text6").Range.Fields(1). Result.Select
End Sub

If I understand this all correctly, I want EXITTEXT# to be the field I am in
and then ("TEXT#") where I want to go next. If that is correct, what's
happening to me is that Exittext2 is skipping to text6 and then following the
order. It happens in one other spot where a drop down falls as well, but in
this case I am skipping to a different table, so could that be the problem?
Any suggestions to fix this?
  #2   Report Post  
Posted to microsoft.public.word.tables
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Tab order / ExitMacros created, but still skipping......

The problem is just that dropdowns are handled differently by VBA than are
text fields. Leave out the .Result when you want to select a dropdown:

Sub ExitText2()
ActiveDocument.Bookmarks("Dropdown1").Range.Fields (1).Select
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

skygazerkm wrote:
Word 2003
I have a form with several text fields, drop downs and check boxes
that I have added exitmacros to - thanks to the information on other
postings!! I am still having a problem with them going in order, but
only a few fields keep getting skipped. I cannot figure out what I
did wrong. I am very new to forms in Word, so bear with me. I did
individual exitmacros because the strings and "togoto" seemed to
complicated for my beginner knowledge. This is what I have created.

Option Explicit

Sub ExitText1()
ActiveDocument.Bookmarks("Text2").Range.Fields(1). Result.Select
End Sub

Sub ExitText2()
ActiveDocument.Bookmarks("Dropdown1").Range.Fields (1).Result.Select
End Sub

Sub ExitText3()
ActiveDocument.Bookmarks("Text4").Range.Fields(1). Result.Select
End Sub

Sub ExitText4()
ActiveDocument.Bookmarks("Text16").Range.Fields(1) .Result.Select
End Sub

Sub ExitText5()
ActiveDocument.Bookmarks("Text6").Range.Fields(1). Result.Select
End Sub

If I understand this all correctly, I want EXITTEXT# to be the field
I am in and then ("TEXT#") where I want to go next. If that is
correct, what's happening to me is that Exittext2 is skipping to
text6 and then following the order. It happens in one other spot
where a drop down falls as well, but in this case I am skipping to a
different table, so could that be the problem? Any suggestions to fix
this?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skipping a field ntulley Mailmerge 1 April 22nd 08 08:49 PM
Changing Page Order after document is created Cindy Microsoft Word Help 1 September 13th 07 03:51 PM
how do i control the tab order im my form, created in word 2003 Sly Microsoft Word Help 2 March 2nd 07 05:44 AM
Can I scan pages in order and they will stay in order (word) Jan Ross Microsoft Word Help 1 January 2nd 06 06:19 PM
I want to change the tab order in a word form I created. BARC Microsoft Word Help 1 May 4th 05 05:01 PM


All times are GMT +1. The time now is 07:12 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"