ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Text(month(now()),"MMMM") deosnt work (https://www.excelbanter.com/excel-worksheet-functions/11913-text-month-now-%22mmmm%22-deosnt-work.html)

BOB

Text(month(now()),"MMMM") deosnt work
 
Hi to all
Weekday(now()) =2
text(weekday(now()),"DDDD")=Monday
Month(now())=2
But text(month(now()),"MMMM") =January. What am I doing wrong?
Thanks!


Arvi Laanemets

Hi

=TEXT(NOW(),"dddd")
=TEXT(NOW(),"mmmm")

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"BOB" wrote in message
...
Hi to all
Weekday(now()) =2
text(weekday(now()),"DDDD")=Monday
Month(now())=2
But text(month(now()),"MMMM") =January. What am I doing wrong?
Thanks!




BOB

Thanks that worksin formula, now how do I put this in code?

Dim mysheet As String
mysheet = (Text(Now(), "MMMM"))
Worksheets(mysheet).Select

Thanks again


"BOB" wrote:

Hi to all
Weekday(now()) =2
text(weekday(now()),"DDDD")=Monday
Month(now())=2
But text(month(now()),"MMMM") =January. What am I doing wrong?
Thanks!


Arvi Laanemets

Hi

Try
mysheet = (Format(Date, "MMMM"))

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"BOB" wrote in message
...
Thanks that worksin formula, now how do I put this in code?

Dim mysheet As String
mysheet = (Text(Now(), "MMMM"))
Worksheets(mysheet).Select

Thanks again


"BOB" wrote:

Hi to all
Weekday(now()) =2
text(weekday(now()),"DDDD")=Monday
Month(now())=2
But text(month(now()),"MMMM") =January. What am I doing wrong?
Thanks!




BOB

Thanks!

"Arvi Laanemets" wrote:

Hi

Try
mysheet = (Format(Date, "MMMM"))

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"BOB" wrote in message
...
Thanks that worksin formula, now how do I put this in code?

Dim mysheet As String
mysheet = (Text(Now(), "MMMM"))
Worksheets(mysheet).Select

Thanks again


"BOB" wrote:

Hi to all
Weekday(now()) =2
text(weekday(now()),"DDDD")=Monday
Month(now())=2
But text(month(now()),"MMMM") =January. What am I doing wrong?
Thanks!






All times are GMT +1. The time now is 03:20 AM.

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