Public Function MidABS(ByVal InputString As String, Optional ByVal StartPosition As Long = 1, Optional ByVal EndPosition As Long = 1000000000) As String
Returns a part of a string starting at the specified StartPosition and ending (including) at the specified EndPosition. Thus MidABS("abcdefg", 3,4) returns "cd". Will never throw errors but return an empty string if the numbers make no sense.
SendDebug("Hello world", 3, 5) 'Prints 'llo'
SendDebug("Hello world", 5, 3) 'Prints ''
SendDebug("Hello world", 7, 7) 'Prints 'w'