paste special values in vba

后端 未结 4 1594
太阳男子
太阳男子 2021-01-20 22:54

I am working on a small project which requires me to copy and paste certain columns if I detect \"true\" in the row. I am trying to paste these selected columns onto a diffe

4条回答
  •  走了就别回头了
    2021-01-20 23:26

    PasteSpecial must be Range.PasteSpecial not ActiveSheet.PasteSpecial. They are different things and ActiveSheet.PasteSpecial does not know any parameter "Paste".

    ActiveSheet.Range("a" & i).PasteSpecial Paste = xlPasteValues
    

提交回复
热议问题