I googled across a short description on the implementation of a "Lambda function" within Excel the other day while searching for a way to pass a function or sub as a parameter to another function/sub, and I thought I'd share it with the group.
So here's the code after I gave it a bit of a face lift and added some example subs:
The only short comming I had with it is that Evaluate() will evaluate a worksheet function. So I wasn't able to pass VBA Code, only what would resolve via worksheet functions; however I have not yet fully looked into the VBA Extensibilty Library so there may yet still be a way to improve the process so that it'll run VBA Code instead...![]()
Please Login or Register to view this content.
Bookmarks