<< Click to Display Table of Contents >> Mid (function) |
Mid(String, Start [, Length])
Returns a substring of the passed string String. It starts with the position Start and is Length characters long. If Length is omitted, the entire rest of the string is returned.
Example:
Sub Main
MidTest = Mid("Potato salad", 8, 4)
MsgBox MidTest ' Result: "sala"
End Sub