![]() |
|
#1
|
||||
|
||||
![]()
Which document is getting these extra tables? The changes I made to the code have no effect on the 'Email Merge Main Document.doc' or the 'EmailDataSource.doc', so if the erroneous result affects either of those, it's because of something else you've done.
The '.Execute Pause:=False' line has nothing to do with the error you're getting.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Sorry the EmailDataSource file that the mail merge creates. I figured out why the extra rows were being generated and why the endless loop. The Excel file somehow got corrupted and had thousands of blank rows that the merge was reading as actual data. I created a new file and that issue disappeared.
So I am able to run the file without changing anything except that the email would be in HTML format and the subject, as seen below. I wanted to see it run before I changed the timing. It ran but it never generated emails to my Outlook account. It does nothing but create the EmailDataSource file and the macro ends. I verified that the code read exactly the same and the file is created successfully. .MailSubject = "Terminate" .MailFormat = wdMailFormatHTML '.MailFormat = wdMailFormatPlainText Most importantly, thank you so much for helping me with this. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
nevin27 | Mail Merge | 29 | 02-17-2023 09:26 AM |
![]() |
User02182016 | Mail Merge | 1 | 02-23-2016 06:02 PM |
Delay After Hours Messages Automatically | kskalwat | Outlook | 0 | 03-18-2015 02:59 PM |
Catalogue e-mail merge problem | lol22 | Mail Merge | 4 | 02-15-2013 02:59 AM |
Email send delay--where? | markg2 | Outlook | 8 | 02-14-2010 03:40 PM |