Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA mid() function
Using XP & Excel2002 to find a string in another string, gets me weird results:
Dim S As String Dim L As Long S = "0123456789" For L = 1 To 10 Debug.Print Mid$(S, L, L) Next The above code returns the correct value only on the 1st iteration. Thereafter the Mid$ keeps growing. Is there an API procedure to accomplish this? Can't seem to find it. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming |