T
Thomas M
Hi.
I'm making a script that I want to jump from one formfield to the
next. Below is the code. How do I get this vbs code to jump to the
next FormField?
Set objWord = createobject("word.application")
objWord.visible = True
Set objDoc = objWord.Documents.Add("c:\mydoc.doc", false)
objDoc.FormFields("Text4").Result = "Some text"
objDoc.FormFields("Text4").Next.select
'The next line fails
objDoc.Selection.Result = "Text in the next FormField"
I'm making a script that I want to jump from one formfield to the
next. Below is the code. How do I get this vbs code to jump to the
next FormField?
Set objWord = createobject("word.application")
objWord.visible = True
Set objDoc = objWord.Documents.Add("c:\mydoc.doc", false)
objDoc.FormFields("Text4").Result = "Some text"
objDoc.FormFields("Text4").Next.select
'The next line fails
objDoc.Selection.Result = "Text in the next FormField"