问题
I am trying to copy adjacent columns U:W from sheet1 to sheet2 with the following code and don’t work...what is wrong????
Dim rngUW As Range
Set rngUW = Worksheets("Sheet1").Range(Range("U2:W2"), Range("U1:W1").End(xlDown))
Worksheets("Sheet2").Range("C1").Resize(rng.Rows.Count, rng.Columns.Count).Cells.Value = rng.Cells.Value
来源:https://stackoverflow.com/questions/53373236/copy-a-range-of-adjacent-columns-from-sheet1-to-sheet2