Tải bản đầy đủ (.pptx) (32 trang)

automatic tasks with visual basic

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (428.97 KB, 32 trang )

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

×