how to paste only values in excel

后端 未结 4 1534
情书的邮戳
情书的邮戳 2021-01-20 08:18

I\'m quite new to Excel and completely new to this forum.

I have taken the code from the below forum and modified it to my need.

http://pressf1.pcworld.co.nz

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-20 09:01

    Use .Copy together with .PasteSpecial. Instead of:

    SourceCells.Copy TargetSht.Cells(2, SourceCol)
    

    Do this:

    SourceCells.Copy
    TargetSht.Cells(2, SourceCol).PasteSpecial xlPasteValues
    

提交回复
热议问题