Hi Norm;

Thanks for the response;

I do think it's installed correctly, since there is a setup program that
does the software installation work, but I have rechecked the work it did,
comparing Sandy's installation against Jims.

Recently I lost my hard drive, which means I lost my installation of vb
software, so I guess I'll have to reinstall it and begin debugging the
process.

We got the code for the mailmerge program from a third party company,
which we later bought from them, along with an iSeries software package.
This vb program merges data from the iseries with word document on the pc
network to create correspondence to customers. I'm actually a iseries RPG
programmer, not a vb programmer, which is why I came to this forum, hoping
someone out there could give me some direction on understanding the
problem. I'm not really a vb programmer, although I have made some
modifications to the product.

The code below is where the error is originating from:.

'check merge document for attached header
' if not skip it
If Not MailMergeDocument.MailMerge.State = wdMainAndHeader Then
SkipDocumentPrint = True
ShowMessage FileName, ".doc is not a mailmerge document", "**"
Documents.Close (wdDoNotSaveChanges)
Exit Sub
End If

Darrell Lee
Information Technology
Extension 7127

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.