Paste Values instead of formulas with PasteSpecial - VBANewbie

后端 未结 3 1434
悲&欢浪女
悲&欢浪女 2021-01-25 10:33

I am absolutely new to vba. I want to copy certain values in cells from two tabs (\"Equities\", \"Bonds\") into a third one (\"ZSM\") with the following code.

Su         


        
3条回答
  •  执笔经年
    2021-01-25 11:18

    You should use xlPasteValues. Example:

    Range("B5").PasteSpecial xlPasteValues
    

    If you prefer formulas you could use xlPasteFormulas.

    I strongly advise to read this article on how to avoid using Select:

    How to avoid using Select in Excel VBA

提交回复
热议问题