Watch me argue it out with the wise and venerable (but ultimately incorrect) Bill “Mr. Excel” Jelen on the topic of using Option Explicit in your code. I argue for the affirmative (that you should use it) while Bill takes the status quo. Let me know your thoughts.
Tags
optionexplicitvba
Jordan, I’m with you on Option Explicit. It makes you think about the code you write. You had that Mr Excel on the ropes, although I’m not sure he realised it at the time!
Option Explicit and declaring my variable properly (with data type) allows me to use Ctrl+ to autocomplete all my variable by typing 3 or 4 characters!
So Jordan, keep on Option Expliciting!!!!
Daniel