How To Use Variable Scope and Variable Lifetime In Excel2020-10-21VBA VariablesSometimes you want to retain the value of a variable in Excel VBA when a procedure ends.
How To Use Option Explicit In Excel2020-10-18VBA VariablesWe strongly recommend to use Option Explicit at the start of your Excel VBA code. Using Option Explicit forces you to declare all your variables.
Variables and Variable Scope In Excel VBA2020-10-16VBA VariablesThe scope of a variable in Excel VBA determines where that variable may be used. You determine the scope of a variable when you declare it.