hi, does anyone know how to remove the first 6 characters from a string?
Printable View
hi, does anyone know how to remove the first 6 characters from a string?
VB Code:
dim yourstring as string yourstring = Right$(yourstring, Len(yourstring) - 6)
or you could use:
Dim strMyString As String
Dim strSource as String
strSource = "Hello!!!! This is an Example of Strings"
strMyString = Mid(strSource, 7, Len(strSource))
MsgBox strMyString
might be better expressed asCode:strMyString = Mid(strSource, 7, Len(strSource))
Code:strMyString = Mid$(strSource, 7)