• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Paste Special by VBA

manoj_th

Member
Hi Sir,


Can u pls tell me that how to paste the value by using VBA in excel.

Eg: In the cell A5 there is a formula "=Sum(A2:A4), I want to copy and paste the answer in the format of VALUE in cell A6 by VBA code in a worksheet/workbook. Request you to help in this regard.
 
HI Manoj


Try the given code


Open excel > press alt+f11 > then paste the give code


Sub Manoj()

Range("A5").Select

Selection.Copy

Range("A6").Select

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _

:=False, Transpose:=False

End Sub


Any query plz let me know.


regards

istiyak
 
Back
Top