sendmail to variable

L

Looker

I need to send mail to a user whose value is in row E41
but cannot get it to work
can this be done?

ActiveWorkbook.SendMail Recipients:=Range("E41").Value,
Subject:=(Range("A8").Value) & "-" & (Range("D22").Value) & Format(Date,
"yyyy-mm-dd") ActiveWindow.Close SaveChanges:=False
 
R

Ron de Bruin

Hi Looker

Try this

Try this

ActiveWorkbook.SendMail Recipients:=Range("E41").Value, _
Subject:=Range("A8").Value & "-" & Range("D22").Value & Format(Date, "yyyy-mm-dd")
ActiveWindow.Close SaveChanges:=False
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top