Function monthName(myMonth As Integer)
' if you are in an English dating system (m/d/y) then change the code
to:
'MsgBox StrConv(Format(myMonth & "/1/2006", "mmmm"), vbProperCase)
MsgBox Format("1/" & myMonth & "/2006", "mmmm")
End Function
Sub testMonth()
'here you supply the month number you want the name for
monthName (5)
End Sub
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.