I want to write a code with multiple parameters like this :
Set param1 = qt.Parameters.Add("City Parameter", xlParamTypeVarChar) and be able to use either one parameter or the second. VBA obliged me to have values for both parameters, but I want to have one obligatory parameter and others optional. What should I add to the code?
Optionalparameters must appear at the end of the paremeter list. That said, asking about a procedure's signature without even sharing what your procedure's signature is, is a little short.