UDF's code must be in ThisWorkbook's module (in same workbook, or in your
Personal Macro Workbook - Personal.xls);
UDF's code can't have any activities in workbook, like changing cell
entries, or changing active sheet/cell, or changing cell formats, etc.;
UDF's return the value from variable with same name as UDF.
Or in an Add-in(*.xla) loaded through Tools>Add-ins.
Gord Dibben MS Excel MVP
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.