I have a UDF which I know works while in debug mode in the VBA environment. the function did not access the worksheet but used test data that emulated the cases I expected to see.
Now I wish to use my function in my worksheet.
I get the "#name?" error when i attempt to run the UDF
Here are some hints at what is happening.
the workbook is macro enabled (file->options -> trust center -> settings -> enabled all macros
if i get out of the vba environment and into excel, and select macros, and select the workbook in which the macro exists, no macros are seen. blank box.
If i go to a worksheet cell and type an "=" sign and then begin typing my UDF, a drop down list box
appears with my UDF listed. I dbl click on it excel finishes the udf name afterwhich I put the parameters into my UDF.
upon hitting return, I get the #name? error
I do not know where to turn to trouble shoot. I did try inserting a new module and looked for where the environment
placed the module. the new module was placed in the vba project on the same level as my UDF and on the same level as sheet1 etc. i am assuming it is in the correct place.
Soooo while the UDF DOES appear as i begin typing it as one of many functions available, when I input data it throws the error #name?
a long shot....desparate...some time ago...i tried putting the macro in personal.xlsb and attached the name to the udf name. the macro worked.
but i don't want to put it in personal.xlsb until I get it working in the workbook in which the UDF was written.
please help
Bookmarks