Hello,
How do I create a VBA function using worksheet functions? For example, let's say I use the Macro Recorder and type in a worksheet function. In VBA, it creates a Procedure as opposed to a Function. For example, it may create this:
How do I convert that into a VBA function? I have a worksheet function that's very long and it would be nice if I just simplify it in VBA.
Thanks!
How do I create a VBA function using worksheet functions? For example, let's say I use the Macro Recorder and type in a worksheet function. In VBA, it creates a Procedure as opposed to a Function. For example, it may create this:
Code:
Sub dayttest()
ActiveCell.FormulaR1C1 = _
"=IF(DAY(RC[-11])<10,CONCATENATE(0,DAY(RC[-11])))"
End Sub
Thanks!