Not sure what sort of "text fields" you are talking about. However, I you
are talking about a protected document with formfields, and you had the days
of the week in a DropDown type formfield, and you had an autotext entry for
each day of the week, the following code would insert the appropriate
autotext entry into a formfield based on the day of the week selected from
the DropDown formfield.
' Macro created 15-11-97 by Doug Robbins to add the address corresponding to
a drop down name
'
Dim myDrop as Formfield, Address as String
Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown
Company = myDrop.ListEntries(myDrop.Value).Name
Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Company).Value
ActiveDocument.FormFields("Text1").Result = Address
--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP