A
Andrew
Hi, friends,
I need to merge 2 .doc files: One contains template Header and Footer only,
and the other contains required info.
I did the follows:
Dim mswd As New Word.Application
Dim msdoc As Word.Document
Set msdoc = mswd.Documents.Open("c:\templateHF.doc")
msdoc.Merge "c:\CQInfo.doc"
msdoc.Close
mswd.Quit
However, I got an error: Run-time error 4198 on msdoc.Merge "c:\CQInfo.doc"
line.
Could anyone help? Any sample source code? Thanks a lot.
I need to merge 2 .doc files: One contains template Header and Footer only,
and the other contains required info.
I did the follows:
Dim mswd As New Word.Application
Dim msdoc As Word.Document
Set msdoc = mswd.Documents.Open("c:\templateHF.doc")
msdoc.Merge "c:\CQInfo.doc"
msdoc.Close
mswd.Quit
However, I got an error: Run-time error 4198 on msdoc.Merge "c:\CQInfo.doc"
line.
Could anyone help? Any sample source code? Thanks a lot.