how do I turn off option explicit statement in VB

  • Thread starter Thread starter Guest
  • Start date Start date
select the line that says

Option Explicit

at the top of the module and delete it.

Of course the standard advice is to fix the problems identified by Option
Explict - otherwise, you may not get correct results even it it runs.
 
Hi,

For existing code you can simply comment out the Option Explicit line.

To stop it automatically appearing at the top of new code use the menus
within VBE, Tools > Options. On the editor tab is a checkbox 'Require
Variable Declaration'.

Cheers
Andy
 
Back
Top