A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thank you!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need to create a dropdown that allows multiple selections from a list. I have the VBA code, but it doesn't function. The only thing I can see is that the VBA editor does not have the automatic "Option Explicit" at the top. I've tried manually typing it in, but no go. I don't have the options under Tools in the editor to enable the Option Explicit. Is there a way to work around this?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Thank you!
Hi
I wish these "Advisors" would actually try the follow the instructions they provide. Lionelhou's sleuthing almost got it right, but no cigar!!
Yes, you need to change a setting in Excel's VB Editor's preferences, but the way to get to them is wrong in the explanations provided so far.
You get to the VB Editor Preferences from the Menu Bar. Choose Excel > Preferences.
This opens the dialog you need to change the setting in.
Hello, I am Leonielhou, an Independent Advisor and a user like you, I am happy to help clarify any questions you may have.
See if you can let Option Explicit be automatically in your newly created modules (recommended), by going in “Excel -> Preferences... -> Editor” and tick “Require variable declaration”.
Thank you for your time and have a wonderful day. Cheers!
Best, Leonielhou
Thank you!
I do not see an "Editor" option under preferences. There is an "Edit" option, but it does not mention Require variable declaration.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more