If you mean the substring function as used in e.g. SQLServer-QueryAnalyzer, the VBA equivalent is the MID function.
usage:
Mid(string, start pos, [length])
leaving away the length value will return the rest of the string from start pos till the end
Mid("Steven",3) will return "even"
Mid("Steven",1,5) will return "Steve" and
Mid("Steven",3,3) will return "eve"
Is it that you meant?
;-)
Andreas
[blue]The last voice we will hear before the world explodes will be that of an expert saying:
"This is technically impossible!" - Sir Peter Ustinov[/blue]
HP:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.