GreenTree
10-19-2007, 07:32 PM
Wanted to find out if I'm barking up the right or wrong tree here...
I've been getting familiar over the past few months with VBA in Excel, and feel pretty comfortable with that. I've used Outlook a little bit in years past, but only in the most basic read/write email role, so my familiarity with Outlook scripting/macros (or even rules, really) is about nil.
What I'd like to do is this: each time a new email arrives, Outlook saves the entire text of it (including the to/from/subject) into a sequentially numbered text file on my hard drive. Then, a separate program running in Excel VBA will every so often check for the existence of the next file in sequence, and if it exists, load it, parse it, and take various actions, including perhaps replying to it with a particular file attached. Then the file # counter increments and the process repeats. What I envision is that this setup would run 24/7 on a dedicated computer for maybe a week at a time, during which time it might deal with 200-500 emails. That's the rough size of the project.
I feel confident that I can write everything I need on the Excel end of it to see that the new file exists, load & parse & decide what needs to happen; what I don't know about it having Outlook save each new email as a sequential file (mymail0001.txt, mymail0002.txt, etc), and having the Excel program do the send-with-that-file-attached routine. I get the impression the latter is straightforward; the former... I don't know.
Am I trying to make a square hole with a round drillbit, or is what I'm trying to do reasonably straightforward? If the latter, any hints about examples/threads/KB articles/etc would be most appreciated & helpful.
Many thanks,
G.T.
I've been getting familiar over the past few months with VBA in Excel, and feel pretty comfortable with that. I've used Outlook a little bit in years past, but only in the most basic read/write email role, so my familiarity with Outlook scripting/macros (or even rules, really) is about nil.
What I'd like to do is this: each time a new email arrives, Outlook saves the entire text of it (including the to/from/subject) into a sequentially numbered text file on my hard drive. Then, a separate program running in Excel VBA will every so often check for the existence of the next file in sequence, and if it exists, load it, parse it, and take various actions, including perhaps replying to it with a particular file attached. Then the file # counter increments and the process repeats. What I envision is that this setup would run 24/7 on a dedicated computer for maybe a week at a time, during which time it might deal with 200-500 emails. That's the rough size of the project.
I feel confident that I can write everything I need on the Excel end of it to see that the new file exists, load & parse & decide what needs to happen; what I don't know about it having Outlook save each new email as a sequential file (mymail0001.txt, mymail0002.txt, etc), and having the Excel program do the send-with-that-file-attached routine. I get the impression the latter is straightforward; the former... I don't know.
Am I trying to make a square hole with a round drillbit, or is what I'm trying to do reasonably straightforward? If the latter, any hints about examples/threads/KB articles/etc would be most appreciated & helpful.
Many thanks,
G.T.