Hi,
I'm trying to reference a UDF I've built in the .Formula property (within VBA), but it keeps giving me the NAME#? error! This is how I'm trying to reference it:
Worksheets(1).Range("AG2").Formula = "=MyUDF(A2,K2,1)"
Edit: Corrected typo!
If I use the UDF directly from the cell, it works fine, but I need to be able to put the formula directly into the cell via VBA.
Any ideas? Thanks!
Bookmarks