fredrerik84
Active Member
- Joined
- Feb 26, 2017
- Messages
- 383
Hi Guys Ive been away from this forum for a couple of weeks as most of my work I have been able to handle after all tips and trick I have learned he.
But now I run into another problem: I try to Clean a string like this:
This code have been enough to get my desired results for the most part but just now the string returned a unexpected result which my code cant handle:
<tbody>
</tbody>
Could anyone please help me update my code so that the above string gets reduced to:
"Venue: Estadio Algarve, Faro Loule."
But now I run into another problem: I try to Clean a string like this:
Code:
If InStr(Venue, "Venue") = 0 Then
Cells(rr, "AJ").Value = "Venue: Unknown"
Else
Cells(rr, "AJ").Value = Venue
End If
If InStr(Venue, "Referee") <> 0 Then
Pos = InStr(1, Venue, "Referee")
Venue = Left(Venue, Pos - 2)
Cells(rr, "AJ").Value = Venue
End If
This code have been enough to get my desired results for the most part but just now the string returned a unexpected result which my code cant handle:
First leg (2-1), agg. (3-3). THE NEW SAINTS AET. Venue: Estadio Algarve, Faro Loule. MATCH SUMMARY : Europa earned 1st two legged victory in last seasons UEFA Europa League. Europa lifted 1st Gibraltar league title in 65 years in 2016/17. TNS reached 2nd qualifying round in each of last 5 seasons. Winner face Croatian title holders Rijeka in 2nd round. |
<tbody>
</tbody>
Could anyone please help me update my code so that the above string gets reduced to:
"Venue: Estadio Algarve, Faro Loule."