microsoft / advanced-formula-environment

Create, edit, and reuse formulas in Excel
https://aka.ms/get-afe
MIT License
109 stars 11 forks source link

Providing function descriptions in Module #62

Closed NickRedwood closed 9 months ago

NickRedwood commented 9 months ago

Hi,

It's nice how it's possible to add a function description in the Names section, so that it appears as a tool tip when writing the formula in the Excel grid. Is there a way to define descriptions for functions in Modules too? I can't find it documented anywhere.

Thanks.

jack-williams commented 9 months ago

You can use leading /** */ comments.

/**
 * My function that adds one
 */
add_one = LAMBDA(x, x + 1);
NickRedwood commented 9 months ago

Thank you! That's really great.