View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ben_the_script_newbie ben_the_script_newbie is offline
external usenet poster
 
Posts: 1
Default creating FormFields

Can someone give me the script to create a form field? It seems like it would
be simple, but the script I got from the microsoft site keeps giving me a
'Runtime error 424, object required' I'm using the script from microsoft,

Set ffield = ActiveDocument.FormFields.Add( _
Range:=ActiveDocument.Range(Start:=0, End:=0), _
Type:=wdFieldFormTextInput)
ffield.Name = "FirstName"

Any input would be appreciated.