Putting an Excel UDF into the Worksheet object (as opposed to in a module)
问题 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