Hi All!
How can I select a column with arbitary lenght of datarange with VBA-code? Say there is a column with 10 fields in an Excelworksheet and I wish to select them all, how do I do that?
I've tried this;
Worksheets("Blad1").Activate
Worksheets("Blad1").Cells(1, 1).Select
Selection.End(xlDown).Copy
Worksheets("Blad1").Range("M1").PasteSpecial
but it gives me the last field in the column and not the whole range of the column.
Cheers!
How can I select a column with arbitary lenght of datarange with VBA-code? Say there is a column with 10 fields in an Excelworksheet and I wish to select them all, how do I do that?
I've tried this;
Worksheets("Blad1").Activate
Worksheets("Blad1").Cells(1, 1).Select
Selection.End(xlDown).Copy
Worksheets("Blad1").Range("M1").PasteSpecial
but it gives me the last field in the column and not the whole range of the column.
Cheers!