good day to everyone. i have some problems with the OLE thing. Im making now a program that can edit my word template directly. things are going so smoothly populating formfields in my word template but the thing is.. can i use OLE-Microsoft Office Document to populate one of my formfield? if so? what is the code? please help me :(
vb Code:
Private Sub Command1_Click() Static wd1 As Word.Application Static wd1Doc As Word.Document Set wd1 = New Word.Application wd1.Visible = True Set wd1Doc = wd1.Documents.Add(App.Path & "\profile.dotx") With wd1Doc .FormFields("w_name").Range = Text1.Text .FormFields("w_age").Range = Text2.Text .FormFields("w_sex").Range = Combo1.Text .FormFields("w_exam").Range = Text3.Text .FormFields("w_file").Range = Text4.Text .FormFields("w_result").Range = OLE1.????????????