asgsitting
New Member
- Joined
- Jan 10, 2016
- Messages
- 4
Hi I have a real simple VBA to right , but as I am really new to VBA I am very much struggling, though I understand the logic completely I just dont know how to write it in VBA. Can someone please help?
Problem follow:
A1: Mr Adam Smith & Mrs Celia Smith
A3: Mr A Ping & Mr Wa Chu
A5: Dr I Gupta & Dr V Gupta & Mr A Gupta
I need to extra Names in different Cells, so for A1
I need to extract
Mr Adam Smith (B1) Mrs Celia Smith (B2)
From A3:
B3: Mr A Ping
B4: Mr Wa Chu
From A5:
B5:Dr I Gupta
B6: Dr V Gupta
B7: Mr A Gupta
I can understand the logic that the pointer need to start from right and extract the words as it is until it hits the "&" corrector, then it should move one cell up and start extracting again until it hits the &, guessing it will be a For loop but because I dont know this language have no idea how to implement it, can someone please help me?
Thanks
Anshuman
Problem follow:
A1: Mr Adam Smith & Mrs Celia Smith
A3: Mr A Ping & Mr Wa Chu
A5: Dr I Gupta & Dr V Gupta & Mr A Gupta
I need to extra Names in different Cells, so for A1
I need to extract
Mr Adam Smith (B1) Mrs Celia Smith (B2)
From A3:
B3: Mr A Ping
B4: Mr Wa Chu
From A5:
B5:Dr I Gupta
B6: Dr V Gupta
B7: Mr A Gupta
I can understand the logic that the pointer need to start from right and extract the words as it is until it hits the "&" corrector, then it should move one cell up and start extracting again until it hits the &, guessing it will be a For loop but because I dont know this language have no idea how to implement it, can someone please help me?
Thanks
Anshuman