Need help clean strings

fredrerik84

Active Member
Joined
Feb 26, 2017
Messages
383
Hello great community. I have some strings I need to clean. Here is some samples:

leagueData('39290','ROUND 16','UZBEKISTAN','C','2016/2017','FA CUP'); return false;
leagueData('37935','ROUND 64','ARGENTINA','C','2016/2017','FA CUP'); return false;
leagueData('41003','STAGE 1','SOUTH AMERICA (CONMEBOL)','C','2016/2017','COPA SUDAMERICANA'); return false;
leagueData('37964','ROUND 16','ASIA (AFC)','C','2016/2017','AFC CHAMPIONS LEAGUE'); return false;

Any help with a vba code to get it to only return the text in red ?

The string is stored like this
Code:
Dim Leaguedata as string 
Dim r as Long 

and I have a loop which returns the results from above.

any help would be really appreciated
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,216,116
Messages
6,128,926
Members
449,479
Latest member
nana abanyin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top