Login | |
|
 |
RE: InStr / Right function - 4/16/2008 12:48:57 AM
|
|
 |
|
| |
ebgreen
Posts: 4411
Score: 29
Joined: 7/12/2005
Status: offline
|
There are a couple of ways to do this. The way I would do it is this: 'strLine is the line you want to look for the data in If InStr(strLine, ":") Then strData = Split(strLine, ":")(1) End If
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: InStr / Right function - 4/16/2008 3:40:56 AM
|
|
 |
|
| |
ebgreen
Posts: 4411
Score: 29
Joined: 7/12/2005
Status: offline
|
Remeber that "There are a couple of ways..." statement? Well we are going to go a different way 'strLine is the line you want to look for the data in strData = Mid(strLine, InStr(strLine, ":")+1)
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|