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.
- All Excel LOOKUPs Explained - May 26, 2020
- How to: Power Query File From Folder - April 21, 2020
- Oz’s Excel Tip: Keep a Workbook for Random Data in Excel - January 23, 2020
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