More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

share code 09-Sep-2010 06:08

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

Code level: intermediate    Code area: Code Essentials Printer Friendly Version
Title: Recording Training Completion into Excel
Description: We have a Web based training that sends me an email when a person has completed it. I have these emails automatically stored in another folder as the email comes in. This code goes the that folder and parses each email (using ParseTextLinePair) and puts the data into an Excel file that I can distribute to the supervisors. After an email has been processed it is moved to an archive folder. Your web site was of great assisstance getting this done. thanks
Date: 01-Jun-2005  01:26
Code level: intermediate
Code area: Code Essentials
Posted by: Mike Woloshuk
Body:
All 14comments
Page [ 1 2 Next >>  
  01-Jun-2005  09:57   
Nice example! Thanks for sharing it.
  28-Oct-2005  11:32   
I don't understand where ParseTextLinePair is? I looked in the VBA help system and there was not explanation. I thought this was a function and would be at the bottom of the code...not.
  31-Oct-2005  16:18   
For Merrill. This subroutine was written by Sue Mosher and that is why i did not include it. It parses text out of the body of a message. either search on ParseTextLinePair or i think this web link will get you to the code: http://www.outlookcode.com/codedetail.aspx?id=89
 
  01-Nov-2005  12:44   
Thankyou-got it.
  12-May-2006  07:13   
Very nice code... and very useful.
Thank you for sharing it.
  23-Jun-2006  16:50   
This is very promising.
However, being a newbie... how do I run it?
I tried running it inside Outlook and get an error about Workbook not being defined (user-defined type).

Thanks for your help.
  26-Jun-2006  10:48   
I am also getting the same error as Jigar about the workbook not being defined (user-defined type) what does this mean??

Dim myWB As Workbook, myWS as Worksheet
    Set myWB = Workbooks.Open(sFilePath & sExcelFile)
    Set myWS = myWB.Worksheets(sWSName)
  26-Jun-2006  14:38   
for Jigar and Chrys
i am assuming your excell exists? if not, it must.
you also must set (check) the "mircosoft excel object library" under "tools/references" in the VB code menus

sFilePath is the path ex: "c:\temp"
sExcelFile is the excel file name ex: "myexcel.xls"
sWSName is the worksheet name ex: "sheet1"

hope this helps
 
  26-Jun-2006  14:50   
i have cleaned up my code and re-submitted it.

see http://www.outlookcode.com/codedetail.aspx?id=1297


 
  27-Jul-2006  00:06   
hi , i am trying to run to code but i cannot as my reference tab in tool is disabled , how to enable it.
Page [ 1 2 Next >>  
Post your comment



name        email