Forum Discussion

Anıl Adaş's avatar
Anıl Adaş
Brass Contributor
Aug 12, 2018

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: AGILI...
  • Man Fai Chan's avatar
    Man Fai Chan
    Aug 14, 2018

    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). 

     

     

Resources