Option explicit makes it compulsory to declare a variable before using it. Else throws an error. Compiler does not declare a variable of its own of Variant type.
It is always recommended to use Option Explicit at the start of your code to avoid any conflict in the variable name or type later on .
Comment