Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

type info once and filling several other places 1

Status
Not open for further replies.

fioracasey

Programmer
Jun 30, 2001
13
0
0
US
I want to ask the user to fillin the Company Name (CoName) one time and then have word insert it into several different places on the document.

I am sure I found the answer Friday, but now I can't find it or make it work.

I used the fillin and the ask options. I can't figure it out today. I am not sure why? Can anyone help?
 
Insert a Text Field where you want the user to type the info. Ensure that you name the field with no spaces and with and easy to remember name.

Where you want the info to appear insert a Ref field.

Try Word help on these if you are stuck.

NOTE. The fields will not update straight away but should do when you print. If you have problems let me know and I can send you an Update macro

Regards



Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
This worked perfectly. Please send me your macro.

Thanks.

fiora.casey@motoman.com
 
There's probably a neater way but this works

Sub UpdateField()

Application.ScreenUpdating = False
ActiveDocument.PrintPreview
ActiveDocument.ClosePrintPreview
'Remove the comment (') from the next line if you have a table of contents
'ActiveDocument.TablesOfContents(1).UpdatePageNumbers
Application.ScreenUpdating = False

End Sub

Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top