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