V
vrzimmerm
I'm writing a macro to select and copy a large data matrix (excluding
the header row) by using the following VBA coding. Note: the row
containing the column headers is row 5.
Range("A6").Select
Dim rng2 As Range
Set rng2 = Range(ActiveCell, ActiveCell.Offset(-1,
0).End(xlToRight))
Set rng2 = Range(rng2, rng2.End(xlDown))
Selection.Copy
For some reason this code only selects the single cell A6 to be
copied. What am I doing wrong?
the header row) by using the following VBA coding. Note: the row
containing the column headers is row 5.
Range("A6").Select
Dim rng2 As Range
Set rng2 = Range(ActiveCell, ActiveCell.Offset(-1,
0).End(xlToRight))
Set rng2 = Range(rng2, rng2.End(xlDown))
Selection.Copy
For some reason this code only selects the single cell A6 to be
copied. What am I doing wrong?