Forum Discussion
Passing a list or array to a function
- 7 years ago
Here is an example
https://www.dropbox.com/s/r2ha4qe9513ft08/functions.xlsx?dl=1
What you have written as the pseudo code is one function with 3 parameters. You could execute the same function that takes 1 parameter 3 times instead. In power query, create. List of ranges. {“rg1”,”rg2”} etc. Convert to a table, Then insert column, invoke custom function and pass the column values to the function. Then combine
- freelensia7 years agoAdvocate II
Sorry could you show me the code to do that?
I am not sure what your method does, but how would I invoke this new function?
The simplicity that I seek is that I can easily type in one line the items in my list and the desired macro would execute them, without having to create new queries or tables.- MattAllington7 years agoCommunity Champion
Here is an example
https://www.dropbox.com/s/r2ha4qe9513ft08/functions.xlsx?dl=1
- v-piga-msft7 years agoResident Rockstar
Hi freelensia ,
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry