Get month from date

R

RobcPettit

Useing VBA, how to I get the month from a date in range("a1") as text.
Eg if date = 30/1/02, Month = "January" or 30/10/05 then month =
"October". I want to worksheets with the month.
Regards Robert
 
D

Dave Peterson

Another way, depending on what version of excel you're using:

MsgBox MonthName(Month(Date))

(I think xl2k added MonthName...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top