ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Re-format Date (https://www.excelbanter.com/excel-programming/431045-re-format-date.html)

J.W. Aldridge

Re-format Date
 
I need the date format in this code....

ActiveSheet.Name = "Sort " & Format(Date - 1, "ddd mmm dd")

To be used in this code (cause dates in E2 have / which can be in
sheet name).

.Subject = "Sort " & " " & Range("e2").Text

Can someone tell me how to marry the two into one code?

Bob Umlas[_3_]

Re-format Date
 
..Subject = "Sort " & Format(Range("e2").Value,"ddd mmm dd")


"J.W. Aldridge" wrote in message
...
I need the date format in this code....

ActiveSheet.Name = "Sort " & Format(Date - 1, "ddd mmm dd")

To be used in this code (cause dates in E2 have / which can be in
sheet name).

.Subject = "Sort " & " " & Range("e2").Text

Can someone tell me how to marry the two into one code?




J.W. Aldridge

Re-format Date
 
thanx!
worked purfectly.


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

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