Copy a range of adjacent Columns from Sheet1 to Sheet2

最后都变了- 提交于 2019-12-11 17:42:53

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!