Hi guys,
I'm new to the world of VBA, and although im getting through OKish, im stuck on some things. The first thing is deleting a word in a cell that contains a sub-word, so for example, if we have cells like:
1000.2, old_version12_0
1800.4, new_version19_30
10050.2, new_version102_0
100.4, old_version2_0
I want something which will delete any word containing "version", so i get:
1000.2,
1800.4,
10050.2,
100.4,
My other problem is with splitting the contents of a cell and putting the two parts into variables, so if I have cells such as:
1000.2, a
1800.4, a, bc
10050.2, a, bc, a
100.4, c, aa, ab, a
I want whatever is on the RIGHT of the last comma into one variable, and whatever is on the LEFT of the last comma into another variable. i.e.
left var = 1000.2, right var = a
left var =1800.4, a, right var =bc
left var =10050.2, a, bc, right var =a
left var =100.4, c, aa, ab, right var =a
obviously though I'm aware we can't fit all these into the same variable, I just need it to work for one of the cells so I can process the information and then I will be looping through and doing the same for the next cell.
All help would be much appreciated!
I'm new to the world of VBA, and although im getting through OKish, im stuck on some things. The first thing is deleting a word in a cell that contains a sub-word, so for example, if we have cells like:
1000.2, old_version12_0
1800.4, new_version19_30
10050.2, new_version102_0
100.4, old_version2_0
I want something which will delete any word containing "version", so i get:
1000.2,
1800.4,
10050.2,
100.4,
My other problem is with splitting the contents of a cell and putting the two parts into variables, so if I have cells such as:
1000.2, a
1800.4, a, bc
10050.2, a, bc, a
100.4, c, aa, ab, a
I want whatever is on the RIGHT of the last comma into one variable, and whatever is on the LEFT of the last comma into another variable. i.e.
left var = 1000.2, right var = a
left var =1800.4, a, right var =bc
left var =10050.2, a, bc, right var =a
left var =100.4, c, aa, ab, right var =a
obviously though I'm aware we can't fit all these into the same variable, I just need it to work for one of the cells so I can process the information and then I will be looping through and doing the same for the next cell.
All help would be much appreciated!