Professional Documents
Culture Documents
LECTURE 4
http://wuchan.sytes.net
3
stock.xlsx
VBASHEET2
4
5
6
7-1
7-2 Active X
7-3
7-4
7-5
7
ActiveX
8
()
VBA
ActiveX
7-1
Excel
10
7-2 ActiveX
ActiveX
ActiveX
7-2 ActiveX
11
7-2-1 ActiveX
7-2 ActiveX
12
7-2-2
7-2 ActiveX
13
7-2-3
14
Alt
Shift
ActiveX
Sheet 1
15
ActiveX
Text Control
16
Text
MaxLength
LinkCell Text
Enable EnableFalse
1.
17
Sheet3
sheet2sheet3
Sheet3
1.
18
3.
19
20
sheet2
21
7-5-1 ActiveX
2.
22
method(, , , )
23
7-3
ActiveX
(TrueFalse)
4.
24
sheet1
1. >5000
2.
3. sheet3
25
4.
26
4.
27
5.
28
4 (clear)
sheet3
10
29
ListBox
30
ActiveX
+
31
ListBox
ListBox
ListFillRange
Sheet2!$I$2:$I$25
LinkedCell
Sheet4!$F$15
MultiSelect: 01
ListBox
32
ListBox*
33
ListBox1.ListCount
ListBox1.List(k)
k
ListBox1.Selected(k)
k
True or False
6.
34
sheet
35
36
Combobox
37
ComboBoxSelected
ComboBox
ComboBox.Value
ComboBox.ListIndex
ListBoxComboBox
38
AddItem
.AddItem
RemoveItem
.RemoveItem
Clear
.clear
ListBoxComboBox
39
AddItem
RemoveItem
Clear
List
40
41
[listbox_combobox_]
7.
42
ListBox.selected(k)
7.
43
44
7.
45
46
Application.CountIf()
=1
=0
(Lecture 6)
VLookUp
HLookUp
Match
8.
47
And
8.
48
49
ActiveXCommandButton
50
>5000
Proposal
51
1.
1. 15
2. +
1.
2.
3.
4.
5.
52
53
Date and Time Picker
54
format, MaxDate, MinDate
55
Date and Time Picker
56
Date and Time Picker
57
CELLSheet1.DTPicker1.Value
58
59