On the word document there is a field called <ConformanceText> that is used to store the text from a selection of text files.
In the text file there are tab characters (09).
The maximum number of characters that can fit into this field is 255 (256?) and i am trying to fit in 273. My text doesn't include the tab characters, i have spaced them out.
The code to read data from the file is:
Code: Select all
Open Conformance For Input As #1
Do While Not EOF(1)
conformancetext = conformancetext + Input(1, 1)
Loop
Close #1
Code: Select all
WORDapp.ScreenUpdating = True
WORDapp.ScreenRefresh
With WORDapp.ActiveDocument.Content.Find
.ClearFormatting
.Forward = True
.Wrap = 1 'wdfindcontinue
.Execute "<ConformanceText>", , , , , , , , , conformancetext, 2 'wdReplaceAll
End With
Or maybe there is another way around this.