Range.Paste - Object doesn't support this property or method

前端 未结 4 722
再見小時候
再見小時候 2021-01-06 06:14

I\'ve got a very simple procedure that copies a range from one workbook and pastes it into another; the issue is, I\'m getting the error in the title on the paste

4条回答
  •  长情又很酷
    2021-01-06 06:29

    Change it to y.Sheets("DTR").[a1].PasteSpecial

    Paste does not work on ranges, to paste a range you have to use PasteSpecial. I believe by default it does everything but you can specify quite a bit, see here

提交回复
热议问题