Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm trying to undertand hpw to return a value from another function, when I run the mtest function I receive an error for the MsgBox (IsValidType) how I can I return a value? Thanks! Private Function IsValidType(ByVal sString) As String If LCase(sString) = "standard" Then IsValidType = "SomethingA" Else IsValidType = "SomethingB" End If End Function Sub mtest() myvar = "standarda" IsValidType myvar MsgBox (IsValidType) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to convert cell formula functions to code functions | Excel Discussion (Misc queries) | |||
formula/functions for average and if functions | Excel Worksheet Functions | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Conversion from Spreadsheet Toolkit functions (ESSV....) to EssBase API functions | Excel Programming | |||
excel functions and User defined functions | Excel Programming |