#opt option value
option - one of words in the table below.
value - one of values (0 or 1) in the table below.
| Option | 0 (default) | 1 |
| err | on compile-time error, stop compiling | on compile-time error, continue; skip statement with error |
| dispatch | call COM functions through VTBL (if available) | call COM functions through IDispatch.Invoke |
| nowarnings | display warnings | don't display warnings |
Sets an option that is used at compile time.
#opt err 1 UserDefinedFunctionThatMayBeMissing(a b c) #opt err 0 typelib Excel {00020813-0000-0000-C000-000000000046} #opt dispatch 1 Excel.Application xlApp._create xlApp.Visible = -1