I did a search but did not find much help on this.
I need to know how to modify text in the document, and also how to insert a picture (that is NOT in a file, it's a picturebox in my program)
For example I have to find "FirstName" and replace with actual first name let's say "John Doe" (keeping the same font and formatting).
Also, I need to insert a picture in the document in the top/right corder, and have no clue how.
This is the code I found by searching, and did not find anything to do the rest of what I need...
Any help apreciated, thanksVB Code:
Option Explicit Private objWord As Word.Application Private objDocument As Word.Document Private Sub Form_Load() Set objWord = New Word.Application Set objDocument = objWord.Documents.Open("C:\Template.doc") End Sub




Reply With Quote