![]() |
#1
|
|||
|
|||
![]() All, I have a mail merge and macro that has been running since 2003 that has all of a sudden stopped working with a 5941 error message. Word 2010. It debugs on the last line: Windows("M_HERBARIUM_LABEL.DOTX").Activate Here is the whole code, any help greatly appreciated, thank you. Mike O. *** Sub MERGE_DEFAULT() ' ' MERGE_DEFAULT Macro ' Macro recorded 9/25/2003 by Greg Harmison ' With ActiveDocument.MailMerge .Destination = wdSendToNewDocument .MailAsAttachment = True .MailAddressFieldName = "" .MailSubject = "" .SuppressBlankLines = True With .DataSource .FirstRecord = wdDefaultFirstRecord .LastRecord = wdDefaultLastRecord End With .Execute Pause:=False End With Application.Templates.LoadBuildingBlocks Windows("M_HERBARIUM_LABEL.DOTX").Activate End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error 5941 when running my macro to auto populate fields throughout the word doc | VBAnovice1 | Word VBA | 2 | 05-26-2015 01:35 AM |
Help Please: New VBA user trying to use a macro to split Mail Merge documents. Two Run-Time Error | zipit189 | Word VBA | 7 | 03-18-2015 01:13 PM |
Run-time error 5941 when deleting a row from a table | jpb103 | Word VBA | 1 | 05-26-2014 07:08 AM |
![]() |
rec | Mail Merge | 1 | 04-29-2011 10:30 PM |
Error Message in Mail Merge | A Bhavani | Mail Merge | 0 | 11-26-2008 12:08 PM |