I using the following code to search my Outlook inbox for a particular email and then save it to a specific location. The problem I am having is that the name of the attachment varies daily due to the fact that the attachment is labeled with the date it represents.

Ex. I will get an email on 6-22-2012 but the attachment is named for 6-21-2012_repair.csv. I have been manually opening the csv file and then saving as excel workbook in a specific location and saving it by just the date of the of attachment. So if the attachment name is 6-21-2012_repairs.csv and I will just save it as 6-21-2012.xls. I need some help adjusting this code to allow this to happen. What changes do I need to make?



Please Login or Register  to view this content.

Thanks!!!!!