How can i crop a string so i remove everything after the "@" sign. For example say i want to take a string "AAA@INTERNET" and remove everhing from the @ so my new string is AAA?
Use the InStr function to find the position of @, then use Left to get the first x characters from the string.
For example:
Left("AAA@INTERNET",InStr("AAA@INTERNET","@")-1)
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.