Re: Find text between text
If the text "My birthday is on the " and the text " of January." is fixed then you can use mid() to get the text.
Re: Find text between text
What I'm going to be use it for is this:
I get the source code of a web page, in the webpage the text: Your production: 100 Lumber. is used. Now I want to get the production out of the webpage. the number can be 10,100,1000 etc. So I can't use get the 2/3/4 character in the between production and lumber.
Please tell me how to do this.
vb6hacker
Re: Find text between text
Quote:
Originally Posted by vb6hacker
What I'm going to be use it for is this:
I get the source code of a web page, in the webpage the text: Your production: 100 Lumber. is used. Now I want to get the production out of the webpage. the number can be 10,100,1000 etc. So I can't use get the 2/3/4 character in the between production and lumber.
Please tell me how to do this.
vb6hacker
The blank within the text appears to be a delimiter that you can look for to isolate the number you are searching for:
Code:
Dim MyText As String, MySearch() As String
MyText = "Your production: 100 Lumber"
MySearch = Split(MyText, Chr$(32))
MsgBox MySearch(2)