I am reading an Excel sheet and then for each row in the Excel I am sending an email from Outlook. This works.
I want to update a column in Excel with the date and time after the email was sent. I am not using a data table in this automation currently as I couldn’t get it to work.
Any tips here are greatly appreciated. If you know of a recent video where this is shown can you please reply, I have some other videos from 3 and 4 years ago, but there are differences that I haven’t been able to resolve.
Use Send Outlook Mail Message or Send SMTP Mail Message to send the email.
Add Excel Application Scope activity.
Configure the File Path property to point to your Excel file.
If you already know the row index, you can use it directly. Otherwise, you might need to read data from the file
Use the Write Cell activity to update the cell in the identified row.
To get the current date and time, use an Assign activity:
currentDateTime As String = Now.ToString(“yyyy-MM-dd HH:mm:ss”)
Write Cell activity:
SheetName: The name of the sheet where you want to write.
Cell: The cell address you want to update, e.g., "B2".