hi,
Is there a way to store the text of a word document in a variable without opening the document?
I explain:
I have document1.doc opened
I want to copy and paste the contain of document2.doc at the end of document1.doc without opening document2.doc
I ve tried to use
Open "document2.doc" For Input As #1
Do While Not EOF(3)
Line Input #3, temp
tempstr = tempstr & temp
Loop
Close #3
but I don t get the result
Any idea?
Is there a way to store the text of a word document in a variable without opening the document?
I explain:
I have document1.doc opened
I want to copy and paste the contain of document2.doc at the end of document1.doc without opening document2.doc
I ve tried to use
Open "document2.doc" For Input As #1
Do While Not EOF(3)
Line Input #3, temp
tempstr = tempstr & temp
Loop
Close #3
but I don t get the result
Any idea?