your question can be subdivided as Creating an Excel file , you can use either VBscript or use csv file
and for Reading and writing from Email.
follow the steps
- Open spreadsheet
- Loop through Read mail
- go to begining of row of active cell
- set value of active cell{from}
- go to one cell right to active
- set value of active cell{subject}
- go to one cell down
- end loop