Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Programmatically, how would I convert the month from 1-12 to January -
December. Let's assume my variable for month is called MONTH. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should be close...
Dim intMonth As Integer intMonth = 5 MsgBox Format(DateSerial(2000, intMonth, 1), "mmm") -- HTH... Jim Thomlinson "Barb Reinhardt" wrote: Programmatically, how would I convert the month from 1-12 to January - December. Let's assume my variable for month is called MONTH. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Barb,
you could try:- Sub Month() Dim Mnth As String Mnth = Format(Date, "mmmm") MsgBox "This month is : " & Mnth End Sub Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting Number to Month in Text Problem | Excel Worksheet Functions | |||
Problem Converting date to month in text for use in pivot table | Excel Worksheet Functions | |||
Converting Month Number to Month Text Abbreviation | Excel Worksheet Functions | |||
Converting Text months to sortable Numbers or Dates | Excel Discussion (Misc queries) | |||
converting months to years and months??? | Excel Discussion (Misc queries) |