A
aef1
Please would someone know how to enter text from a text file (the whole
file contents) into Word. I have seen some code on the forums, but
don't understand how it works.
Found this simple code, but it will only input the last set of
characters in the file.
Dim MyString
Open "C:\files\test.txt" For Input As #1
Do While Not EOF(1)
Input #1, MyString
Loop
Close #1
ActiveDocument.Bookmarks("Test").Range.Text = MyString
Thanks in advance,
Net
file contents) into Word. I have seen some code on the forums, but
don't understand how it works.
Found this simple code, but it will only input the last set of
characters in the file.
Dim MyString
Open "C:\files\test.txt" For Input As #1
Do While Not EOF(1)
Input #1, MyString
Loop
Close #1
ActiveDocument.Bookmarks("Test").Range.Text = MyString
Thanks in advance,
Net