big_bear
08-20-2007, 04:28 AM
Dear all,
Thank you for taking the time to read this, perhaps with an eye to helping me out...
Like many others, I have been developing a way of dealing automatically with email attachments in the form of daily reports.
My save method is an amalgamation of Sue Mosher's neat little code (posted all over the place) and the one from the knowledge base on this website. (Sorry, I can't post links as a newbie)
What I have works wonderfully, but when I try to open my (txt) files with a macro in Excel, using 'opentext' I get a warning telling me (some paraphrasing):
This file is not in a recognizable format:
If you know the file is <never going to work> click cancel and <get a brain>
If you suspect the file is damaged, click Help <but you're basically screwed>
If you still want to see what text is in the file <good luck to you> click OK
If I click OK, my macro continues and works as it should.
If I save the files manually from Outlook (as I had been doing, until I wrote this macro), the warning doesn't come up.
Even if I try to open the automatically saved files, I get the same warning message.
These three points lead me to believe I need to define the format of the txt file as a text file when I save it, but how?
With some experience of these forums I suspect rather than a straight answer someone will kindly explain how I've actually completely missed the point. Sorry if my ignorance makes the question awkward!
Thanks, Neil
Thank you for taking the time to read this, perhaps with an eye to helping me out...
Like many others, I have been developing a way of dealing automatically with email attachments in the form of daily reports.
My save method is an amalgamation of Sue Mosher's neat little code (posted all over the place) and the one from the knowledge base on this website. (Sorry, I can't post links as a newbie)
What I have works wonderfully, but when I try to open my (txt) files with a macro in Excel, using 'opentext' I get a warning telling me (some paraphrasing):
This file is not in a recognizable format:
If you know the file is <never going to work> click cancel and <get a brain>
If you suspect the file is damaged, click Help <but you're basically screwed>
If you still want to see what text is in the file <good luck to you> click OK
If I click OK, my macro continues and works as it should.
If I save the files manually from Outlook (as I had been doing, until I wrote this macro), the warning doesn't come up.
Even if I try to open the automatically saved files, I get the same warning message.
These three points lead me to believe I need to define the format of the txt file as a text file when I save it, but how?
With some experience of these forums I suspect rather than a straight answer someone will kindly explain how I've actually completely missed the point. Sorry if my ignorance makes the question awkward!
Thanks, Neil