Nov 7, 2005 #1 AFK1 IS-IT--Management Aug 26, 2005 38 US I have a string that looks like this 123!ThisLetter!344 I need to get the letter 'ThisLetter' or in other word letter between first! and last!, because the length of the middle letter can change. Any idea of how to do that. Thanks.
I have a string that looks like this 123!ThisLetter!344 I need to get the letter 'ThisLetter' or in other word letter between first! and last!, because the length of the middle letter can change. Any idea of how to do that. Thanks.
Nov 7, 2005 #2 gmmastros Programmer Feb 15, 2005 14,910 US Dim strTest As String strTest = "123!ThisLetter!344" Msgbox Split(strTest, "!")(1) Split will create an array of string for you. This array starts at 0, so the (1) element of the array will be what you are looking for. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
Dim strTest As String strTest = "123!ThisLetter!344" Msgbox Split(strTest, "!")(1) Split will create an array of string for you. This array starts at 0, so the (1) element of the array will be what you are looking for. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Nov 7, 2005 Thread starter #3 AFK1 IS-IT--Management Aug 26, 2005 38 US Thanks...It worked..I got my value.. Great Day Upvote 0 Downvote