how can i VB6 using he word object
take few word files and makefrom them 1 bigword fiile where each word file starts in a new page
thnaks in advanve
peleg
Printable View
how can i VB6 using he word object
take few word files and makefrom them 1 bigword fiile where each word file starts in a new page
thnaks in advanve
peleg
[color=navy]You can use the Word Object Model to automate Word and merge the documents.
VB Code:
Option Explicit 'Add a reference to MS Office Word xx.0 Object Library Private Sub Command1_Click() Dim oApp As Word.Application Dim oDoc As Wrod.Document Set oApp = New Word.Application Set oDoc = oApp.Documents.Open("C:\Document1.doc") 'Do reading stuff or writting? '... oDoc.Close SaveChanges:=True Set oDoc = Nothing oApp.Quit Set oApp = Nothing End Sub