Paste vs PasteSpecial

前端 未结 1 882
-上瘾入骨i
-上瘾入骨i 2020-12-20 21:59

After two hours of futile search and frustration. I am posting the question here.

Can anyone please explain the detailed difference between paste and pastespecial op

相关标签:
1条回答
  • 2020-12-20 22:39

    That's simple :


    Paste will paste exactly what's in the origin range (to make it simple: values or formulas)


    PasteSpecial let you define what you want to paste (value, formula, style, etc..).

    With:

    expression .PasteSpecial(Paste, Operation, SkipBlanks, Transpose)
    

    The first argument Paste is of XlPasteType Enumeration type that determines what you can choose


    Some further read:

    MSDN Range.PasteSpecial Method

    The PasteSpecial VBA Command: Get VBA to Do the Hard Work for You

    0 讨论(0)
提交回复
热议问题