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

Why the "Range.Formula = " not work?

xxing01

New Member
I want to copy the formula from one cell/cells to another cell/cells by "Range.Formula = ".
But it not work as expected.
If I run the VBA step by step, the function will ended at "Range.Formula = " without error.

Code:
Function test1(sOURCE As Range, tARGET As Range)
    tARGET.Formula = sOURCE.Formula
    test1 = tARGET.Formula
End Function

78959
 

Attachments

  • Range.Formula VBA Copy.xlsm
    16.1 KB · Views: 2
Back
Top