Using SaveAs Method with DocumentItem Object

A

Artem

I have a Excel template file in a Mail/Post folder. I'm
trying to use SaveAs method to save a copy of this
document to c:\. No matter how I tried the saved file is
not recognized as a good Excel template file. I tried
using olTXT=0, olRTF=1, olTemplate=2, and olMSG=3 values
for Type argument of SaveAs method. My guess is that
olDoc=4 value should do the job, but for values 4 and up
SaveAs method returns error. Any ideas?
 
S

Sue Mosher [MVP]

Try using the Attachment.SaveAsFile method. The file, I think, is actually an attachment to the post in the folder.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
A

Artem

That was it. As always, I admire your complete grasp of
the problem and accurate answer.

Artem
-----Original Message-----
Try using the Attachment.SaveAsFile method. The file, I
think, is actually an attachment to the post in the
folder.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers



"Artem" <[email protected]> wrote in
message news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top