![]() |
#6
|
||||
|
||||
![]()
First, I suggest you use Option Explicit. That way you'll trap errors like:
.Destination = wdSendtToNewDocument As for the File Permission Error, that suggests you're trying to save to a non-existent folder, a folder you don't have write permissions for, or over a file that your system regards as being in-use. You might also try using SaveAs2 and incorporating the file format & compatibility parameters. For example: .SaveAs2 FileName:=myPath & "\" & rpt_od & ".docx", FileFormat:=wdFormatXMLDocument, CompatibilityMode:=wdCurrent perhaps event with AddToRecentFiles:=False
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel to word Mail Merge problem | mark_kofi | Mail Merge | 4 | 07-17-2018 03:49 PM |
![]() |
drgt | Mail Merge | 2 | 02-14-2017 04:31 AM |
![]() |
Hook | Mail Merge | 2 | 01-11-2012 09:36 AM |
Mail Merge Problem | JohnRG | Mail Merge | 0 | 11-02-2009 02:50 AM |
problem in Mail merge | rjagathe | Mail Merge | 0 | 08-12-2009 08:25 AM |