Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Been fooling with this for a while, trying to figure out why this function
works fine when called or when I insert a debug.print or a message box, but it won't run from a formula in the spreadsheet. Public Function ConvertTxtMo2NumMo(iMonth) Select Case iMonth Case Is = 1 sMonth = "Jan" Case Is = 2 sMonth = "Feb" Case Is = 3 sMonth = "Mar" Case Is = 4 sMonth = "Apr" Case Is = 5 sMonth = "May" Case Is = 6 sMonth = "Jun" Case Is = 7 sMonth = "Jul" Case Is = 8 sMonth = "Aug" Case Is = 9 sMonth = "Sep" Case Is = 10 sMonth = "Oct" Case Is = 11 sMonth = "Nov" Case Is = 12 sMonth = "Dec" End Select End Function Any suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
This sub runs to a function in a Module. Why? | Excel Programming | |||
add a button on a spreadsheet that runs a macro | Excel Programming | |||
Function runs more than once | Excel Programming | |||
Run macro but let user update spreadsheet while it runs | Excel Programming | |||
macro runs except from function | Excel Programming |