Returns a specified number of characters (substring) from the left side of a string.
Left(string As String, length As Integer) As String
s = Left(string, length)
|string||(String) String expression from which the leftmost characters are returned.|
|length||(Integer) Numeric expression indicating how many characters to return. If 0, then a empty string ("") is returned. If greater than or equal to the number of characters in string, then the entire string is returned.|
To determine the number of characters in string, use the Len
sString = "VBScript"
LeftString = Left(sString, 3) 'LeftString contains "VBS"