hi
using vba in word, i was able to read the text from 1 file and insert it into the document which was reading the file. i have forgotten how to do this.
does anyone know?
thanks
Printable View
hi
using vba in word, i was able to read the text from 1 file and insert it into the document which was reading the file. i have forgotten how to do this.
does anyone know?
thanks
you can read straight from a text file using:
VB Code:
Dim myFile as string, myLine as string myFile = "C:\ThisFile.txt" open myFile for Input as #1 do while not eof(1) Line input #1, myLine 'Use this line elsewhere msgbox myLine loop close #1
Hope this helps?
sugarflux
Thanks