VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Creating a Word Mail merge document using a Record set

Jonathan Adams  (1 Submission)   Microsoft Office Apps/VBA   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

The code will allow you to pass a template name and a recordset to ONE routine and this will then create you a Word Mail Merge document based upon the selected template. If no template is found then a blank file is created
Now upated to include ALL code required to run ;)

Inputs
Usage :- Dim iobj_word as cls_wrd_report_manager Set iobj_word = New cls_wrd_report_manager rs_data =the recordset to output s_report_path :=Patha and filename of template document b_Print := True or Fales (Print or Show) Call iobj_word.produce_mail_merge(rs_data, s_report_path, b_Print)

Returns
A Boolean value for success or failure

Rate Creating a Word Mail merge document using a Record set (6(6 Vote))

Download Creating a Word Mail merge document using a Record set

Creating a Word Mail merge document using a Record set Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters