| 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 >> ] | ||
|
|
Sue Mosher
01-Jun-2005 09:57
Nice example! Thanks for sharing it. |
|
|
|
Merrill Kuske
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. |
|
|
|
Mike Woloshuk
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 |
|
|
|
Merrill Kuske
01-Nov-2005 12:44
Thankyou-got it. |
|
|
|
Rafael Goncalves
12-May-2006 07:13
Very nice code... and very useful. Thank you for sharing it. |
|
|
|
Jigar
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. |
|
|
|
Chrys Wilkinson
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) |
|
|
|
Mike Woloshuk
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 |
|
|
|
Mike Woloshuk
26-Jun-2006 14:50
i have cleaned up my code and re-submitted it. see http://www.outlookcode.com/codedetail.aspx?id=1297 |
|
|
|
raghavendra das
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 |
