I have a question about adding emails rows to a spreadsheet. I would like to get outlook mail messages that are in the pending category to go into a spreadsheet and a days pending column starts automatically at 0. The next day when the bot runs if the email is still pending and using a subject line as a unqiue identifier, then the days pending column should go to 1 and increment +1 each day it’s still pending. Here is an example of what I am looking for. I have everything working except I cannot figure out the increment part. I used Convert.ToInt32(existingRows(“Days Pending”))+1 but not having any success.
If you are going to recreate the file based on pending cases and if you want to calculate Days pending from the email received date then, you can do this calculation in DataTable and just write it at once.
If you are going to add cell by cell then you should be using excel formula like this: