Function PS(X As Range) As Double
Range(X).Select
Selection.Copy
Range(X).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
End Function
I am trying to create a function PS where it take value from cell and pastes special in the cell where the PS function is used. The above code not giving the desired value.