I am automating text input into a Word-document with VB6 with the following code:
Dim objDoc As Word.Document
Dim sVar As String
.....(open a Word document with textinput form fields)...
objDoc.FormField(1).TextInput.Width=0 'unlimited text length
odjDoc.FormField(1).Result = sVar
As long as sVar has less then 256 characters this works, but with more than 256 characters a runtime '4609' text too long occurs.
Manually in WORD I can enter as many characters as I want in the text formfield, but for some reason the automation will not work.
Can anyone tell me why I cannot assign more than 256 charcters?