Good Afternoon,
I have been getting back into VB Script for the first time in a loong while and could use some help with the logic and/or code for a custom solution I need to create.
Basically I have an email alert that is sorted into a folder in my outlook. From there, I have an Access file that I have automatically syn with that Outlook folder. From there, I export the data to excel whenever I want to run a report.
Once in excel, I use the Countifs formula to count the number of occurrences, which automatically feeds graphs I have. Everything is essentially automated in this, which is great.
The problem I have, is another critical piece of Data, the total time of the incident, I currently only know how to do this manually, by doing a sort by name, then by time, then subtract the incident end time by the begin time, and add 30 minutes for the trigger time for the event to have been emailed in the first place.
It works, but is too cumbersome to be performed on a production scale. I know some of the aspects of the logic, and presume part of it can be handled by if/then statements, however, it has just been too long since I used these skills, 20 plus years long since I wrote in Basic.
I know I need to search for the subject line of the email to begin the process, which I had the person setting up the alerts set to the office location, because that location will have the starting event/ time email, then the ending event/ time email associated with it.
My main issue is not knowing what to research to begin to put this code together. If anyone had any pointers it would be greatly appreciated.
I have been getting back into VB Script for the first time in a loong while and could use some help with the logic and/or code for a custom solution I need to create.
Basically I have an email alert that is sorted into a folder in my outlook. From there, I have an Access file that I have automatically syn with that Outlook folder. From there, I export the data to excel whenever I want to run a report.
Once in excel, I use the Countifs formula to count the number of occurrences, which automatically feeds graphs I have. Everything is essentially automated in this, which is great.
The problem I have, is another critical piece of Data, the total time of the incident, I currently only know how to do this manually, by doing a sort by name, then by time, then subtract the incident end time by the begin time, and add 30 minutes for the trigger time for the event to have been emailed in the first place.
It works, but is too cumbersome to be performed on a production scale. I know some of the aspects of the logic, and presume part of it can be handled by if/then statements, however, it has just been too long since I used these skills, 20 plus years long since I wrote in Basic.
I know I need to search for the subject line of the email to begin the process, which I had the person setting up the alerts set to the office location, because that location will have the starting event/ time email, then the ending event/ time email associated with it.
My main issue is not knowing what to research to begin to put this code together. If anyone had any pointers it would be greatly appreciated.