robertgama
Board Regular
- Joined
- May 4, 2011
- Messages
- 189
Does anyone have a function that takes an unknown number of ranges (worksheet cells) as arguments that can then be joined with the provided delimiter.
It should ignore null values.
I saw that someone posted the following line of code:
Replace(WorksheetFunction.Trim(Join(myArray)), " ", ",")
So I guess my real question is how to pass an unknown number of arguments into a function and put the values in an array.
I used to know how to handle something similar but I forget now.
Thanks,
Rob.
It should ignore null values.
I saw that someone posted the following line of code:
Replace(WorksheetFunction.Trim(Join(myArray)), " ", ",")
So I guess my real question is how to pass an unknown number of arguments into a function and put the values in an array.
I used to know how to handle something similar but I forget now.
Thanks,
Rob.