I suspect the answer is "not possible" - but there is no harm in asking this fine community!
I have a Excel 2013 UDF (User Defined Function) that is unique to a certain worksheet.
Currently, I have this UDF in a "Module" in the containing Workbook. But what I would like to do, is to place the UDF code in the "Worksheet Object" so it is only available to that particular Worksheet.
I have tried, of course, but it is not visible, so I naturally get a #NAME? error. I've tried prefacing the Function with Public (which would defeat the object anyway), but to no avail.
Does anyone know of a particular trick?
Thanks in advance, Nic.