Public Function ClipEnd(s As String, CharCount As Long) As String
Clip CharCount characters from the start of the string.
If the string is less than CharCount characters long, returns an empty string.
Additional string manipulation
Clip CharCount characters from the start of the string.
If the string is less than CharCount characters long, returns an empty string.
Clip CharCount characters from the start of the string.
If the string is less than CharCount characters long, returns an empty string.
Create a fixed width string by truncating or padding to the desired length.
If the string ends with the search string, remove the search string from the end. Otherwise return the passed string unaltered.
If the string ends with the search string, remove the search string from the end. Otherwise return the passed string unaltered.
If the string ends with the search string, remove the search string from the end. If the string start with the search string, remove the search string from the start. The string does not have to be at the start and end to be removed, it may be at either. Otherwise return the passed string unaltered.
Repeat the string RepeatCount times
Same as the Mid() VBA builtin string function, but if there's an error just return the empty string.
Does the string start and end with the search string ?