How to call VBA function from Excel cells (2010)?
问题 I defined a few functions in a workbook using VBA, and then expected to be able to use them in a cell formula - but Excel does not recognise the function. I just get #NAME? Tried: Realising I had created an XSLX file, I converted it to a XSLM file. Didn't work. Removed all types from the function declaration. Didn't work. Moved the function into the worksheet VBA module. Didn't work. Added Public to the declaration. Didn't work. What am I missing? This isn't clever code, either: Function