ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Visual Basic Help (https://www.excelbanter.com/excel-programming/318255-re-visual-basic-help.html)

Duncan Smith

Visual Basic Help
 
Managed to get round the problem.

Thanks to your tip, I got the Sender to add their address
into a field in Excel and then copied it into the subject
line.


ActiveWorkbook.SendMail ("Payroll@marks-and-
spencer.com"), ("Debts From Sto ") & Sheets
("Debts").Range("D5").Value
MsgBox "Your details has been sent.",
vbInformation, "Debts"
Application.ActiveWorkbook.Close savechanges:=False

Where D5 is the Senders details.


All times are GMT +1. The time now is 10:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com