ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   msg box help (https://www.excelbanter.com/excel-worksheet-functions/121029-re-msg-box-help.html)

Anthony

msg box help
 
thanks JIM, WORKS JUST FINE

"Jim Thomlinson" wrote:

MsgBox "Receipt for " & vbCrLf & _
format(Sheets("Sheet1").Range("A1").Value, "mm/dd/yyyy") & vbCrLf & _
" has been created and is ready to print!" , _
vbOKOnly & vbExclamation, " Receipt Daily Info"
--
HTH...

Jim Thomlinson


"Anthony" wrote:

Hi,

is it possible to add a date which is taken from a cell ref within a
worksheet and place it into my msg box??

the date is in sheet1 cell A1
and here is my current msg box


MsgBox ("Receipt for " & vbCrLf & _
"has been created and is ready to print! "), vbOKOnly & vbExclamation, _
(" Receipt Daily info")

I want the date to be added after the text "Receipt for" in the msg box

thanks in advance



All times are GMT +1. The time now is 07:56 AM.

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