Home > database >  Excel 365 Formulas - How to save LAMBDA function permanently (for all existing and new files)?
Excel 365 Formulas - How to save LAMBDA function permanently (for all existing and new files)?

Time:03-04

I would like a global solution every time I start Excel365 with my key add-in also firing up.

I defined several LAMBDA custom functions, saved them in my add-in, and I would like to make them available globally - not just only for the current workbook. Is it possible? I tried saving a workbook with definition as an add-in (.xlam) but the formulas are not available. The don't seem to be available when as an add-in. When I am in the add-in parent file on the desktop, all is good and everything is running. But once I post the file back for your as an add-in, The Lambda(s) and the defined name space go away.

CodePudding user response:

You might try creating a template for excel to load when it is opened.

Customizing how Excel starts so it utilized the template.

CodePudding user response:

My additional work around is also simple. If the LAMBDAs were saved in the original Workbook with "Workbook" as the saved parameter. Then each of those worksheets in the original LAMBDA workbook is "infected" with all of the workbook LAMBDAs. Therefore, I simply copy a blank worksheet from the original Workbook to the "new" workbook. Then by virtue of "infection" the new workbook is also newly infected with all of the new LAMBDAs. It works just like COVID, who knew?

  • Related