Raymond_India
Board Regular
- Joined
- Nov 7, 2008
- Messages
- 68
Dear friends,
I have typed the value "200-250" in cell B3.
On cell D3 I type the formula =LEFT(B3,FIND("-",B3-1) and it returns the value 200
On cell E3 I type the formula =RIGHT(B3),LEN(B3)FIND("-",B3) and it returns the value 250
This works perfectly well with formulas.
Please can someone help me with the VBA equivalent for the same thing ?
Regards
Raymond
I have typed the value "200-250" in cell B3.
On cell D3 I type the formula =LEFT(B3,FIND("-",B3-1) and it returns the value 200
On cell E3 I type the formula =RIGHT(B3),LEN(B3)FIND("-",B3) and it returns the value 250
This works perfectly well with formulas.
Please can someone help me with the VBA equivalent for the same thing ?
Regards
Raymond