A closer look, however, suggests that a rules-based approach is superior. 1  A good monetary policy rule specifies a plan of action which the central bank cannot later ignore, while discretion allows central bankers to reactâand often overreactâto economic indicators as they see fit.
Syntax errors are errors in your code such as a missing semi-colon. Run time errors are errors that appear during run time such as an infinite loop. Logic errors appear when your code does not do what you want it to do because of the logic such as the comparisons are wrong.
Alternatively, a compile error may be detected when the code is compiled, just before being executed. A compile error is generally easy to fix, as the VBA compiler pops up a message box, which provides information on the nature of the error. For example, if you get the message Compile error: Variable not defined when you attempt to run your code, this indicates that you are referencing a variable that has not been declared in the current scope. (This error is only generated when you are using Option Explicit). Runtime Errors