PC Review


Reply
Thread Tools Rate Thread

Copy A File FROM Outlook

 
 
=?Utf-8?B?TUN5bg==?=
Guest
Posts: n/a
 
      8th Aug 2005
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!
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      8th Aug 2005
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!

 
Reply With Quote
 
=?Utf-8?B?TUN5bg==?=
Guest
Posts: n/a
 
      8th Aug 2005
I was trying to extract/copy a file in a public folder in outlook to a folder
on my desktop.

"Sue Mosher [MVP-Outlook]" wrote:

> 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!

>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      8th Aug 2005
Then you'd need to use Attachment.SaveAsFile as I suggested. Freedocs are actually stored as attachments to normal Outlook items.

--
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:1A24C98E-7103-4251-86F8-(E-Mail Removed)...
>I was trying to extract/copy a file in a public folder in outlook to a folder
> on my desktop.
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> 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.


>>
>> "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!

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WinVista file copy network timeout to WinXP for file Outlook.pst 2007 Sharpy Microsoft Outlook Discussion 4 29th Apr 2009 06:37 AM
Need .bat file to copy Outlook .pst file to other computers. HELP! =?Utf-8?B?VCBHaWxs?= Microsoft Outlook Discussion 1 27th Jun 2006 02:03 AM
copy contact file frm desktop outlook 2000 to laptop outlook 2002 =?Utf-8?B?anpzbG9uZG9u?= Microsoft Outlook Contacts 1 1st May 2006 12:06 AM
Copy a file to Outlook =?Utf-8?B?TUN5bg==?= Microsoft Access VBA Modules 1 27th Jul 2005 10:37 AM
Trying to copy my Outlook pst file Ben M. Schorr - OneNote MVP Microsoft Outlook 2 15th Apr 2004 06:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 AM.