ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date question (https://www.excelbanter.com/excel-programming/304286-date-question.html)

Stuart[_5_]

Date question
 
Have
..Range("I2").Value = Format(Date, "dddd dd mmm yyyy")

Cannot find how to change this to give the full value for the
month, rather than a truncated version.

How is this done, please?

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



Rob Bovey

Date question
 
"Stuart" wrote in message
...
Have
.Range("I2").Value = Format(Date, "dddd dd mmm yyyy")

Cannot find how to change this to give the full value for the
month, rather than a truncated version.


Hi Stuart,

Just add a fourth "m" to the month string.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



Stuart[_5_]

Date question
 
Many thanks to you both.

Regards.

"sebastienm" wrote in message
...
To display the full month, use 4 'm': dd ddd mmmm yyyy
--
Regards,
Sébastien



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004



Patrick Molloy[_4_]

Date question
 
Are you sure that you want to set text in the cell?
You'll lose some flexibility
as an alternative

With Range("I2")
.Value = Date
.NumberFormat = "dd mmmm yyyy"
End With

--
Patrick Molloy
Microsoft Excel MVP
---------------------------------
I Feel Great!
---------------------------------
"Stuart" wrote in message
...
Many thanks to you both.

Regards.

"sebastienm" wrote in message
...
To display the full month, use 4 'm': dd ddd mmmm yyyy
--
Regards,
Sébastien



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004





Tom Ogilvy

Date question
 
Macro Recorder broken again?
--
Regards,
Tom Ogilvy

"Stuart" wrote in message
...
Many thanks to you both.

Regards.

"sebastienm" wrote in message
...
To display the full month, use 4 'm': dd ddd mmmm yyyy
--
Regards,
Sébastien



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004






All times are GMT +1. The time now is 09:49 AM.

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