Hello everyone,
Can I copy from an email body (that has the same structure each time) and paste it to excel? The emails that I need to copy to excel are in a folder that do not contain any other type of emails. I need the robot to copy the info from each email and paste it to a new row in excel for each new email it reads.
You can do that. You need to use For each email or get outlook email messages and get the email. Then read the body of the email using the mail object and then use write range to write it to the excel.
So the body do you need to add as a table to the excel? Share a screenshot of the same.
Open the email, select the email body you want to export to Excel spreadsheet, and then press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window. 2. In the Microsoft Visual Basic for Applications window, click Insert > Module. And then copy below VBA code into the Code window.