Mid

Public Function Mid(ByVal InputString As String, Optional ByVal Start As Long = 1, Optional ByVal Count As Long = 1000000000) As String

Returns a the specified number of characters from the specified string starting at the specified position.

SendDebug("Hello world", 3, 5) 'Prints 'llo w'
SendDebug("Hello world", 5, 3) 'Prints 'o w'
SendDebug("Hello world", 7) 'Prints 'world'

See also: