Automating Tasks with
Visual Basic
Introduction
−
−
!
−
"#
−
$$%
Understanding VBA Terminology
&'#
−
Statement'
'#
−
Procedure' '##
%(
& #%
) %$
Understanding VBA Terminology
−
Module!$'
−
Variable#$
$$
'
The Visual Basic Editor
$
*
"'+( ➝ ➝
The Visual Basic Editor
($#
−
!
−
!#
!
−
+#
Adding a New Module
"" ➝
Adding a New Module
",
*-+
−
(
Adding a New Module
*
(%#
#$
Simplest Possible Code Routine
$'
%
&Sub
End Sub
&-./0
#1 1
&
Module types
'
−
Class modules
−
Standard modules-&
Responding to a Form Event
* +#
( -2
'
" !&$*-%
$
-%/30*-%$
&-%*4
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()