Advanced VBA Interview Questions and Answers
Advanced VBA Interview Questions and Answers
Option Explicit force the variables to be declared befre using the variable. This is one of of the best
practices for VBA developers to avoid the type errors and build the error free applications.
Code Module: Default Modules which we use to write all procedures and functions
Class Modules: Class module allows to create new objecs and define methods, properties and events.
Also, it will allow to enhance the existing objects.
Procedures or Subroutines will not return a value; functions will return values.
ByVal: When an argument is passed By Value, the value assigned to the argument is passed to the
procedure. And any changes that are made to the argument inside a procedure, it will be lost when the
procedure is ends.
ByRef: When an argument is passed By Ref, the actual address assigned to the argument is passed to the
procedure. And any changes that are made to the argument inside the procedure will be passed when
the procedure ends.