| Start |
|---|
Use Left or Left$ to get the 3 left-most characters in a string |
Use Right or Right$ to get the 3 right-most characters in a string |
Use Mid or Mid$ to get specific characters from within a string |
Use Trim to get a copy of the string without any leading or trailing spaces RemarksVBA has built-in functions for extracting specific parts of strings, including:
To avoid implicit type conversion onverhead (and therefore for better performance), use the $-suffixed version of the function when a string variable is passed to the function, and/or if the result of the function is assigned to a string variable. Passing a |
Read Article
https://develop.horje.com/learn/1434/reference