Hi...
I have a worksheet which i copy data from different sheets... No issue there... I use ranges to define what needs to be copied and pasted.. eg
I am trying to make my code smarter...
In other words, instead of using the range that I have defined, I would like to set the first part of the range ie "a1", but with the second part I would like it to use the last cell in a column with an entry in the cell. IE it would use cell b12 as there is an entry in there for 777-7777.
How do I do this ??
The data looks like the following:
Col A
1 AAA-AAA
2 111-1111
3 222-2222
4 333-3333
5
6 444-4444
7
8 bbb-bbb
9 555-5555
10 666-6666
11 ccc-ccc
12 777-7777
13
14
15
I have a worksheet which i copy data from different sheets... No issue there... I use ranges to define what needs to be copied and pasted.. eg
Code:
Range("A1:A15").Select
In other words, instead of using the range that I have defined, I would like to set the first part of the range ie "a1", but with the second part I would like it to use the last cell in a column with an entry in the cell. IE it would use cell b12 as there is an entry in there for 777-7777.
How do I do this ??
The data looks like the following:
Col A
1 AAA-AAA
2 111-1111
3 222-2222
4 333-3333
5
6 444-4444
7
8 bbb-bbb
9 555-5555
10 666-6666
11 ccc-ccc
12 777-7777
13
14
15