Is there a way around this problem?
That depends on the way your function is constructed. You may be able to split it into several auxiliary functions, and use those functions as arguments of the final one.
Another way could be to turn a bunch of your variables into one vector.
This is a rather old thread - for a new question please always open a new discussion and if possible also attach a worksheet to show what you need.