
Please advise me what is wrong with my Excel 2007 macro
thank you very much
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If a parameter is supposed to be sent to a function by its definition but it is not sent, this error occurs.
Please note that you can assign optional paramters like this:
By placing the Optional keyword, the function can still be called even without that paramater being passed in to it. The = xxx is where you put the default value in the case that it is not provided.
If you decide not to declare the type of the Optional paramter (making it a Variant), you can use the ultra convenient IsMissing() function to see if it was passed in or not.