Quote:
Originally Posted by speckledegg
Yes; I tried running it with and without the renaming. If I run it from Word with the renaming, then nothing happens after you select "Edit Individual Documents" - it just appears to do nothing.
|
That is to be expected.
Quote:
Originally Posted by speckledegg
If I keep the original name (as per your original code) and run the macro on the mailmerged document, I get the runtime error.
|
One apparent error in your code concerns:
Code:
'StrFolder = .DataFields("Folder") & "\"
StrName = .DataFields("Folder_Name") & "_" & .DataFields("Last_Name")
which should be:
Code:
StrFolder = .DataFields(Folder_Name") & "\"
StrName = .DataFields("Last_Name")
To see why, look at the .SaveAs line...
Apart from that, there is no obvious reason why the runtime error would have anything to do with:
Code:
.Destination = wdSendToNewDocument