Hello.
This problem is giving me a headache. I know its nooby. But how else will i learn?
^ Showing the declaration of the word document that i wish to edit.Code:Public objword As New Word.Application objword.Documents.Open(FileName:=ofilename)
This gets the document and adds text into it, exactly what i want it to do. But it replaces the whole document. I just want it to add text at the start of the document. Not replace the whole document.Code:Dim oDoc As Word.Document objword.Visible = True oDoc = objword.ActiveDocument oDoc.Range.Text = codes(j, 1) & " " & codes(j, 2)
Thanks, Schoolproject.
If there is any needed information. Don't hesitate to ask!




Reply With Quote
