Junior6202
Programmer
Hi All,
I am new to VBA and I want to performed this task:
I have two columns in excel A and B. I want to loop through column B and If cell its not Null copy the data and replace the data in the cell in column A. of course if it was only a few cells I would do it manually but I have a few thousands to go through. Thank you any help is appreciated.
[pre]
Before VBA:
column A column B
1 5
2
3 1
4 2
5
Results:
Column A Column B
5 5
2
1 1
2 2
5
[/pre]
I am new to VBA and I want to performed this task:
I have two columns in excel A and B. I want to loop through column B and If cell its not Null copy the data and replace the data in the cell in column A. of course if it was only a few cells I would do it manually but I have a few thousands to go through. Thank you any help is appreciated.
[pre]
Before VBA:
column A column B
1 5
2
3 1
4 2
5
Results:
Column A Column B
5 5
2
1 1
2 2
5
[/pre]