|
||||
These pages are no longer updated and are only available for archive purposes.Click here to visit the pages with updated information. Split a string and return any individual partThis function splits a character separated string into its indivual parts and returns any given part. Function GetStringPart(strInput As String, strDelimiter As String, _ intPart As Integer) As String Dim varStrings As Variant varStrings = Split(strInput, strDelimiter, -1, vbBinaryCompare) On Error Resume Next GetStringPart = Trim(varStrings(intPart - 1)) On Error GoTo 0 End Function Example:
Document last updated 2005-08-06 14:06:04 Printerfriendly version
|
||||
|