Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone help. I'm trying to get a year returned from a function bu
it keeps coming back empty. I'm calling it, sending a string... in this case '2004' Call messageYearResponse(yearResponse) Then the function is supposed to return xYear as 2004... instead it' coming back empty. Private Function messageYearResponse(ByVal yearResponse As String) Dim xYear If yearResponse = "" Then Exit Function Else If IsNumeric(yearResponse) Then xYear = CInt(yearResponse) Else msgbox ("Must be numeric"), vbOKOnly Resume End If End If End Functio -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Returning a text string after a 2 criteria search | Excel Discussion (Misc queries) | |||
Searching in another workbook for a string and returning with the contents of the cell next to it. | Excel Worksheet Functions | |||
Returning a string of values in an IF statement | Excel Discussion (Misc queries) | |||
returning a value from a string in a single cell | Excel Worksheet Functions | |||
Fix InputBox - Returning Empty String | Excel Programming |