Trim name

F

fredg

How do I trim the "Source_" from Source_Mydata value.

NewStringRight = Mid(OldString,InStr(OldString,"_")+1)
NewStringLeft = Left(OldString,InStr(OldString,"_")-1)
 
R

Ray Mead

More specifically, I want to trim "Source_" from Source_02-06 Audio Center
download
 
D

Douglas J. Steele

Or, perhaps simpler,

x = "Source_02-06 Audio Center download"
x = Mid(x, InStr(x, "_") + 1)
 
Top