ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   msg text body code for if then (https://www.excelbanter.com/excel-worksheet-functions/166961-msg-text-body-code-if-then.html)

jc

msg text body code for if then
 
I have the following code
If Msg = vbYes Then Application.Dialogs(xlDialogSendMail).Show "Jo",
"Adjustment Form"

If Msg = vbNo Then ActiveWorkbook.SendMail Recipients:="Jo",
Subject:="Adjustment Form", ReturnReceipt:=Yes, StrBody:="test"
want to add textbody msg part of email


All times are GMT +1. The time now is 12:45 PM.

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