Using SaveAs Method with DocumentItem Object

  • Thread starter Thread starter Artem
  • Start date Start date
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?
 
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
 
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]...
 
Back
Top