Copy to where? You cannot do anything directly with a file stored as a freedoc in an Outlook folder until you save it as a file using the Attachment.SaveAsFile method. If you want to copy it to a local file folder, that method is all you need.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"MCyn" <(E-Mail Removed)> wrote in message news:A21B15A0-8685-4028-84CE-(E-Mail Removed)...
> Would anyone know how to write code to copy a file from a Outlook folder (All
> Pulic Folders) I'm using Outlook 2000. I've tried using code:
> (Outlook.CopyFile("outlook:\\All Public Folders.......",DestinationPath) but
> I keep receiving this error: "Could not complete the operation. One or more
> parameter values are not valid." Any help would be great!