Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've tried a few different ways in this macro to get the 05 to resolve to
"May" (06="June",...) but it still seems to want to remain as "05". What am I missing here? Sub LoadData(dt As String) 'dt comes in like 0505 mmyy = Trim(dt) fulldate = Mid(mmyy, 1, 2) & "/01/20" & Mid(mmyy, 3, 2) MsgBox (Format(Month(fulldate), mmm)) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
Debug.Print Format(DateSerial(1900, 5, 1), "mmmm") -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "kmbarz" wrote in message ... I've tried a few different ways in this macro to get the 05 to resolve to "May" (06="June",...) but it still seems to want to remain as "05". What am I missing here? Sub LoadData(dt As String) 'dt comes in like 0505 mmyy = Trim(dt) fulldate = Mid(mmyy, 1, 2) & "/01/20" & Mid(mmyy, 3, 2) MsgBox (Format(Month(fulldate), mmm)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
count month when date is in day/month/year format | Excel Worksheet Functions | |||
excel to make the days cary over month to month automaticly | New Users to Excel | |||
Excel 2003 month to month data change grid | Excel Discussion (Misc queries) | |||
Retrieve data for previous 3, 6, 12 month given current month | Excel Worksheet Functions | |||
transfer cell $ amount to other sheet month-to-month without overc | Excel Discussion (Misc queries) |