simonphillips
New Member
- Joined
- Mar 25, 2008
- Messages
- 32
- Office Version
- 365
- Platform
- Windows
Hi Everyone,
I have a UDF that returns an array. The function call in a single cell is =returnSimonsarray(variables here).
Once the function completes it populates the single cell and all the cells surrounding it as expected. It also places a light blue border around the cells and includes the same formula in the formula bar but in light grey for any cell in the array except the top left corner. All good.
I make a lot of these array calls and would like to avoid changing the array if a different cell is set to say '1'. However when I pass the cells of the array returned from the fist pass of the UDF in the second call of the UDF they are all seen as empty ?
Looking for some expert wisdom on how to adapt my UDF with some form of switch so that I can choose whether to keep or change the values in the cells from a past function call when I re-evaluate a cell or hit save.
TIA
Simon
I have a UDF that returns an array. The function call in a single cell is =returnSimonsarray(variables here).
Once the function completes it populates the single cell and all the cells surrounding it as expected. It also places a light blue border around the cells and includes the same formula in the formula bar but in light grey for any cell in the array except the top left corner. All good.
I make a lot of these array calls and would like to avoid changing the array if a different cell is set to say '1'. However when I pass the cells of the array returned from the fist pass of the UDF in the second call of the UDF they are all seen as empty ?
Looking for some expert wisdom on how to adapt my UDF with some form of switch so that I can choose whether to keep or change the values in the cells from a past function call when I re-evaluate a cell or hit save.
TIA
Simon