R
ronben
Version: 2004 Operating System: Mac OS X 10.4 (Tiger) Processor: Intel My previous post on this problem seems to have terminated. I am still stuck on this. I have simplified the issue as follows: The form has several form fields. Interposed between these form fields is a question asking: Check the box if you want to skip the next field (and go on to a field further down)?
The checkbox is set to run the macro below on exit. I assume that placing an X in the box triggers the Exit macro, but that does not seem to work. This is the macro code:
If Check1 = True Then
'skip over Text3 and go to Text4
Selection.GoTo What:=wdGoToBookmark, Name:="Text4"
Else
'checkbox not checked; do not skip over Text3
Selection.GoTo What:=wdGoToBookmark, Name:="Text3"
End If
Comment re the above exit macro:
The macro above was set to run on Exit with the intent that the If….Then statement would test the value of the checkbox and trigger skipping over the next section of the form if the checkbox is checked by hitting the space bar. However, this did not happen. The insertion moves into the next section of the form anyway rather than skipping over it.
(When I click on VB Help I get a message that the Help file cannot be found so I am hoping that the forum can help with this problem. Thanks.)
Ron
The checkbox is set to run the macro below on exit. I assume that placing an X in the box triggers the Exit macro, but that does not seem to work. This is the macro code:
If Check1 = True Then
'skip over Text3 and go to Text4
Selection.GoTo What:=wdGoToBookmark, Name:="Text4"
Else
'checkbox not checked; do not skip over Text3
Selection.GoTo What:=wdGoToBookmark, Name:="Text3"
End If
Comment re the above exit macro:
The macro above was set to run on Exit with the intent that the If….Then statement would test the value of the checkbox and trigger skipping over the next section of the form if the checkbox is checked by hitting the space bar. However, this did not happen. The insertion moves into the next section of the form anyway rather than skipping over it.
(When I click on VB Help I get a message that the Help file cannot be found so I am hoping that the forum can help with this problem. Thanks.)
Ron