B
Bob Walden
Can someone steer me in the right direction on the following problem?
I'm copying a partial range of column data from one worksheet to
another. I need to be able to use variables to control the range
copied.
This sample works ok....
Worksheets("Original").Range("B7:B10").Copy _
Worksheets("Inventory").Range("a2:a5")
But this does not...
Worksheets("Original").Range(Cells(7, 2), Cells(10,2)).Copy _
Worksheets("Inventory").Range("a2:a5")
I'll eventually need to use the second syntax to control the range
selection similar to this:
Worksheets("Original").Range(Cells(r, 2), Cells(r+3,2)).Copy .......
Am I missing something? The VBA help file leads me to believe that
I'm using the proper form. Would appreciate any help.
Thanks in advance!
Bob
I'm copying a partial range of column data from one worksheet to
another. I need to be able to use variables to control the range
copied.
This sample works ok....
Worksheets("Original").Range("B7:B10").Copy _
Worksheets("Inventory").Range("a2:a5")
But this does not...
Worksheets("Original").Range(Cells(7, 2), Cells(10,2)).Copy _
Worksheets("Inventory").Range("a2:a5")
I'll eventually need to use the second syntax to control the range
selection similar to this:
Worksheets("Original").Range(Cells(r, 2), Cells(r+3,2)).Copy .......
Am I missing something? The VBA help file leads me to believe that
I'm using the proper form. Would appreciate any help.
Thanks in advance!
Bob