Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Retrieve data from e-mail attachment

I can write a procedure to retrieve data from a saved file
which the user can select from a file open menu, but is
there a way to have the user open an attachment to an e-
mail and retrieve the data? How do you pause the
procedure execution while the user searches his/her e-mail
and opens the file? How would you error trap if the user
does not open a file? How can I find the file name of the
opened file? (Is it possible to activate another file
before retrieving the data, thereby,
confusing "ActiveWorkbook"?)

Any help would be greatly appreciated,

Joe

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Retrieve data from e-mail attachment

If you use Outlook express you can use this program.

http://www.oehelp.com/DBXtend/Default.aspx

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Dick Kusleika" wrote in message ...
Joe

You can't pause the macro for something like that in any meaningful way.
And if you could, it would likely be fraught with problems.

You can, however, automate Outlook to save an attachment programmatically,
read the saved file and delete it. See here

http://www.dicks-clicks.com/excel/ol...%20Attachments

Depending on what you want to do, there are some options. You could list
all the emails with attachments and have the user select the email. Then,
using the code from the above link, save the attachment.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Joe Adams" wrote in message
...
I can write a procedure to retrieve data from a saved file
which the user can select from a file open menu, but is
there a way to have the user open an attachment to an e-
mail and retrieve the data? How do you pause the
procedure execution while the user searches his/her e-mail
and opens the file? How would you error trap if the user
does not open a file? How can I find the file name of the
opened file? (Is it possible to activate another file
before retrieving the data, thereby,
confusing "ActiveWorkbook"?)

Any help would be greatly appreciated,

Joe





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
e Mail attachment La Blonde New Users to Excel 3 April 12th 10 04:05 PM
how to add attachment in a CDO mail Julaf Excel Discussion (Misc queries) 20 August 19th 08 04:36 PM
Excel e-mail attachment donwb Excel Discussion (Misc queries) 0 April 24th 08 11:45 PM
mail and attachment Jithu Excel Discussion (Misc queries) 1 July 9th 07 12:38 PM
E-Mail attachment to same e-mail address in Outlook Vick Excel Discussion (Misc queries) 4 May 17th 07 07:53 PM


All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"