Anıl Adaş
Aug 12, 2018Brass Contributor
Mailing excel sheets automatically to different recievers
I have lots of sheets and I need to send mail the sheets at the same time but different mail adresses according to the ''consignee'' column.
As an example in photo below, Consignee column: AGILITY LOJISTIK ANONIM, and I wanna send mail this sheet to ''agility'' which is recorded in my outlook adresses book. Is there a way to do it with the help of a formula or macro?
If you want to send email involve Info.cells(i+1,9), Info.cells(i+1,10) and Info.cells(i+1,11), you may use "&" to concatenate the strings.
.body = Info.cells(i+1,9) & chr(10) & Info.cells(i+1,10) & chr(10) & Info.cells(i+1,11)
"chr(10)" represents the line break after the content of Info.cells(i+1,9) (example).