vba mid statement code example
Example: vba mid
Debug.Print Left("abcdef", 3) ' abc
Debug.Print Right("abcdef", 2) ' ef
Debug.Print Mid("abcdef", 2, 3) ' bcd
Debug.Print InStr("abcdef", "de") ' 4
Debug.Print Len("abcdef") ' 6