A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Trouble saving a text attachment



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old April 30th 08, 02:49 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Trouble saving a text attachment

Sorry, but I can't think of any scenario in which an attachment would be readable when double-clicked from the message and unreadable when saved with the same file extension.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"EMoscosoCam" wrote in message news
In fact the attached file is txt: "Details.txt", which is the typical file
that returns when a previous message is bounced back, and this file reports
the error. The file can be opened and be seen within Outlook, but when using
the SaveAsFile method the content cannot be readable.

"Sue Mosher [MVP-Outlook]" wrote:

Sorry, I misread your original post and thought you were saving a message, not an attachment. Saving an attachment with a .txt extension makes sense only if the attachment is in fact a plain text file. If it's a .doc file, for example, changing the extension to .txt is going to leave you with gibberish.

"EMoscosoCam" wrote in message news

objAttachment.SaveAsFile "c:\Details.txt"

Well, the SaveAsFile() only has one argument.



"Sue Mosher [MVP-Outlook]" wrote:

Are you specifying the save as file type as OlTXT? Please show your SaveAsFile code statement.



"EMoscosoCam" wrote in message ...
Hello

I want to save a text attachment to a certain directory, using the
SaveAsFile method. When I open the saved text, I cannot be readable; what
should I do?

The attachment is "details.txt", typical attachment when a mail sent bounces
back.

Thanks a lot.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble forwarding email as text message using SMS Sheri Outlook - General Queries 1 October 30th 07 08:01 PM
Help with Saving Attachment with VBA from Rules Murphybp2 Outlook and VBA 4 August 21st 07 02:16 PM
Trouble with harmles Excel attachment Mr. Smith Outlook - General Queries 4 November 17th 06 07:11 PM
one Outlook user in my company is having trouble seeing embedded text Andy S. Outlook - General Queries 2 July 8th 06 02:59 PM
Problems saving text in a text box Dave Haymes Outlook - Using Contacts 1 February 7th 06 12:58 PM


All times are GMT +1. The time now is 11:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.