mail merge vba

rakesh seebaruth

Active Member
Joined
Oct 6, 2011
Messages
303
Hello Guys,

Can anyone help me on this please.

I have my excel data sheet and my word document as per link below

https://www.dropbox.com/s/my62tw9jsfktwo9/fixedcharge16032018.xls?dl=0


https://www.dropbox.com/s/h5wb91ymd39h3tr/mailmargeflo1.docx?dl=0


My word document is already configured with the merge fields layout .I have to try mail merge on word but
unfortunately word application becomes "not responding" each time i try mail merge.

Can i have a vba code for the mail merge please.

your help will be very much appreciated

thanks/regards

rakesh






 
Last edited:

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Cross posted https://www.excelguru.ca/forums/showthread.php?8873-mail-merge-vba

Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
mail merge vba through record macro

hi guys

The following are recorded macro :-

Sub Macro1()
'
' Macro1 Macro
'
'
ActiveDocument.MailMerge.OpenDataSource Name:= _
"C:\Users\rakesh\Desktop\New folder (17)\fixedcharge16032018.xls", _
ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True, _
AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", _
WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False, _
Format:=wdOpenFormatAuto, Connection:= _
"Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data Source=C:\Users\rakesh\Desktop\New folder (17)\fixedcharge16032018.xls;Mode=Read;Extended Properties=""HDR=YES;IMEX=1;"";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDB:Engine Type=35;Je" _
, SQLStatement:="SELECT * FROM `Sheet1$`", SQLStatement1:="", SubType:= _
wdMergeSubTypeAccess
End Sub

The above works fine. I can preview my letters. But unfortunately when i click on Finish and Merge .Word cannot complete mail merge the letters are not sent in new word document. Each time i get the error word is not responding.

Can you amend or add some vba codes in the recorded macro.

thanks/regards

rakesh
 
Upvote 0
Re: mail merge vba through record macro

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. (See rule#12 here: Forum Rules).
I have merged both threads
 
Upvote 0
Re: mail merge vba through record macro

Have you read what I said in post#6?
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top