Are macros enabled when you create the UDF?