VBA Substrings Use Mid or Mid$ to get specific characters from within a string


Example

Const baseString As String = "Foo Bar"

'Get the string starting at character 2 and ending at character 6
Dim midText As String
midText = Mid$(baseString, 2, 5)
'midText = "oo Ba"