Say I have the following code in excel to open a word doc:

VB Code:
  1. Sub inputtext()
  2.  
  3. Set wrd = GetObject(, "Word.Application")
  4.  
  5. wrd.ChangeFileOpenDirectory _
  6.         "\\BTBEAPDAT01\DATA_BEACON_HOUSE\NCC\Tier3 RP\RP Word Temps\"
  7.         wrd.Documents.Open FileName:="RPNB01", _
  8.         ReadOnly:=True, AddToRecentFiles:=False
  9.     wrd.Selection.TypeText Text:="01"
  10.     wrd.Selection.Range.InsertAutoText
  11.     wrd.Selection.TypeText Text:="02"
  12.     wrd.Selection.Range.InsertAutoText
  13.     wrd.Selection.TypeText Text:="05"
  14.     wrd.Selection.Range.InsertAutoText
  15. End Sub

so the word doc opens and it will insert the autotext entry called '01' which will then prompt the user for some info (eg addressee, addressline1, ....) then once done it will insert the autotext entry '02' which will then prompt the user for more info.

If the info needed for the autotext prompts all exists on excel, is there a way to add this into the code?

many thanks