My question was about writing custom functions in AppleScript and calling them
from a cell in an Excel worksheet. Bob, could you you please clarify you
response that one can "call them via XLM"? Isn't XLM something from the
pre-VBA versions of Office?
Yes it is. But, it has NEVER gone away. It has always worked in all versions
of Excel on both platforms. I¹m not sure how, or even if, Excel can call an
apple script directly; but you can fire an XLM macro from an object (forms
tool, chart, etc.) or cell formula. Then that macro simply consists of
=exec(pathtocompiledaplescript), =return().