Fields and Macros

G

Greg

Vicky,

I am by no means a master of the macro art and a better
solution is likely to come along. The following example
set to fire on exit from the first text formfield in the
document will move to the fifth field if the first field
result is "Yes." It will move to the second field on any
other input. Perhaps you could adapt it to your needs.


Sub Macro1()
With ActiveDocument
If .FormFields("Text1").Result = "Yes" Then
Selection.GoTo What:=wdGoToBookmark, Name:="Text5"
Else
Selection.GoTo What:=wdGoToBookmark, Name:="Text2"
End If
End With
End Sub


-----Original Message-----
I have a template that consists of a table of two
columns. There are Fill in fields set in the 2nd column,
so when the user opens document they see the info they
need to fill in. What I would like to do is apply more
fields? or macros so that when the user enters the info,
if for example the answer is YES, the macro would move
them onto part of the table. Anybody got any ideas on how
to do this or even if it can be done.
 

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