• 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.

Formula to pastespecial

shanan

New Member
Hi,
I'm midst of copy a data from one cell(which contains formula) to another cell using VBA. However when i use .pastespecial option at macro it come as blank. any other coding that allows me to copy and paste the value from the cell which contains formula.?

Thanks for your assistance.

Shanan
 
Hi Shanan ,

If you just wish to copy a formula from one cell to another , you can use the .FormulaR1C1 property. An example would be :
Code:
          Set Sourcerng = Worksheets("Your sheet").Range("D8")
          Set Destrng = Worksheets("Another sheet").Range("J17")

          Destrng.FormulaR1C1 = Sourcerng.FormulaR1C1
Narayan
 
Back
Top