Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Myrna Larson" wrote...
On 3 Feb 2005 15:37:59 -0800, "Harlan Grove" wrote: or for the N_th instance Dim i As Long, p As Long For i = 1 To N p = InStr(p + 1, s, c) if p = 0 Then Exit For Next i .... Where and how are you intending to set the function return value? After the "Next i" statement, if i < N + 1, then there was no Nth occurrence, right? I did mention that this was intended to be inline code. I guess I wasn't explicit that the value, if 0, would be stored in p, and p = 0 would indicate no N_th instance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function to evaluate function as string | Excel Worksheet Functions | |||
string function help | Excel Discussion (Misc queries) | |||
Add Function to String | Excel Worksheet Functions | |||
String function | Excel Worksheet Functions | |||
Function to convert string | Excel Programming |