Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Merge

Status
Not open for further replies.

Andyb7901

IS-IT--Management
Jul 5, 2005
4
US
I need to be able to run a mail merge from VB. My script at the moment reads from a database and then dispalys a record ofg my choice. I need to be able to press a button or something that will transfer all my data to a mail merge document. I have no idea how to do this?? Or if it can be done?? I either need to transfer it to say a word file or a PDF?? Has anyone ever done anything like this?

Thanks
 
Hi and welcome to Tek-Tips. Please read faq222-2244 carefully to get the best from these forums.

Can you clarify if this VB5/6 or VBScript (your reference to script has me worried). If this is indeed VB6 and you have access to Word on all your target machines then record a Word Macro and edit the code produced into your VB app. You will need to change references to ActiveDocument to your own reference of course.

If this is VBScript you will do better in the correct forum (forum329)

If you have difficulty with some specifics then post again, using the guidelines from the FAQ referred

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Essex Steam UK for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top