Howdy Woo,
I think it is breaking where you amended Doug's code to get a filename.
See in message below response.
> Hi,
> I've got this code and I'm getting the above error when I run it:
[quoted text clipped - 17 lines]
> Selection.EndKey Unit:=wdLine, Extend:=wdExtend
> Selection.Copy
Selection.Copy was just for testing, right?
> Docname = Trim(Selection.Text)
Docname might have a paragraph mark in it?
Msgbox "zz" & Docname & "zz"
You could use:
If InStr(Docname, vbCR) <> 0 then
Docname = Trim(Left(Docname, InStr(Docname, vbCR) - 1))
End If
Remember docname must adhere to file naming syntax (punctuation may confuse
Windows OS).
> ActiveDocument.Sections(2).PageSetup.SectionStart = wdSectionContinuous
> ActiveDocument.SaveAs FileName:="D:\" & Docname
[quoted text clipped - 12 lines]
>
> Woo

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID