¤U©Ô¦¡n¦p¦ó¿ï¾Ü«á·|¦Û°Ê±a¥X¨ä¥Lªí³æ°T®§
- ©«¤l
- 103
- ¥DÃD
- 30
- ºëµØ
- 0
- ¿n¤À
- 139
- ÂI¦W
- 0
- §@·~¨t²Î
- wondows XP
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¹ü¤Æ
- µù¥U®É¶¡
- 2013-2-21
- ³Ì«áµn¿ý
- 2015-6-26
|
¦^´_ 4# GBKEE
·PÁ¤j¤jÀ°¦£(0¤f0)~¯u¬O¤Ó±j¤F
¤£¹L¦pªG§Ú¬OnÂI¿ï¤@¸¹À\¡AÀ\ÂI©M»ù¿ú³£·|¦Û°Ê¶]¥X¨Ó
³o¬OnקïþÓ³¡¥÷©O(@@)? |
|
Jared
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-3-7 14:56 ½s¿è
¦^´_ 3# Jared
¸Õ¸Õ¬Ý³o¬O§_¦p§A©Ò»Ý- 'ListIndex = -1: ©Ò¿ïªº¤£¦b List²M³æ¤º
- Private Sub ComboBox1_Change()
- If ComboBox1.ListIndex > -1 Then
- À\ÂI
- Else
- ComboBox2 = ""
- End If
- End Sub
- Private Sub ComboBox2_Change()
- TextBox1 = ""
- If ComboBox2.ListIndex > -1 Then TextBox1 = ComboBox2.List(ComboBox2.ListIndex, 1)
- End Sub
- Private Sub CommandButton1_Click()
- Dim A
- If ComboBox1.ListIndex = -1 Or ComboBox2.ListIndex = -1 Then MsgBox "À\ÂI¤º®e »Ý»ô¥þ !!": Exit Sub
- With Sheet10
- .Cells(.Rows.Count, 1).End(xlUp).Offset(1).Resize(, 3).Value = Array(ComboBox1, ComboBox2, TextBox1)
- End With
- End Sub
- Private Sub CommandButton2_Click()
- test4.Hide
- End Sub
- Private Sub CommandButton3_Click()
- Me.ComboBox1 = ""
- Me.ComboBox2 = ""
- Me.TextBox1 = ""
- End Sub
- Private Sub UserForm_Initialize()
- ComboBox1.List = Array("¤@¸¹À\", "¤G¸¹À\", "¤T¸¹À\")
- End Sub
- Private Sub À\ÂI()
- With ComboBox2
- .Clear
- Select Case ComboBox1.ListIndex
- Case 0 '¤@¸¹À\
- .AddItem "º~³ù¡BÁ¦±ø¡B¥i¼Ö"
- .List(.ListCount - 1, 1) = 50 'ComboBox2ªº²Ä2Äæ ¨SÅã¥Ü¥X¨Ó
- .AddItem "º~³ù¡BÁ¦»æ¡B¥i¼Ö"
- .List(.ListCount - 1, 1) = 49
- .AddItem "º~³ù¡BÁ¦»æ¡B¬õ¯ù"
- .List(.ListCount - 1, 1) = 48
- Case 1 '¤G¸¹À\
- .AddItem "Âû¶ô¡BÁ¦±ø¡B¥i¼Ö"
- .List(.ListCount - 1, 1) = 47 'ComboBox2ªº²Ä2Äæ ¨SÅã¥Ü¥X¨Ó
- .AddItem "Âû¶ô¡BÁ¦»æ¡B¥i¼Ö"
- .List(.ListCount - 1, 1) = 46
- .AddItem "Âû¶ô¡BÁ¦»æ¡B¬õ¯ù"
- .List(.ListCount - 1, 1) = 45
- Case 2 '¤T¸¹À\
- .AddItem "«p¤g¥q¡BÁ¦±ø¡B¥i¼Ö"
- .List(.ListCount - 1, 1) = 44 'ComboBox2ªº²Ä2Äæ ¨SÅã¥Ü¥X¨Ó
- .AddItem "«p¤g¥q¡BÁ¦»æ¡B¥i¼Ö"
- .List(.ListCount - 1, 1) = 43
- .AddItem "«p¤g¥q¡BÁ¦»æ¡B¬õ¯ù"
- .List(.ListCount - 1, 1) = 42
- End Select
- End With
- TextBox1 = ""
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 103
- ¥DÃD
- 30
- ºëµØ
- 0
- ¿n¤À
- 139
- ÂI¦W
- 0
- §@·~¨t²Î
- wondows XP
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¹ü¤Æ
- µù¥U®É¶¡
- 2013-2-21
- ³Ì«áµn¿ý
- 2015-6-26
|
¦^´_ 2# GBKEE
©êºp¡I¥ý¤W¶Ç¥Ø«e§ÚªºÀɮצbªþÀÉ
¥u¯à¤@ÓÓÂI¿ï¤U©Ô¦¡²M³æ
§Æ±æ¯à°÷ÂI¿ï¤@¸¹À\«á
ÀH§Y´N¯à§âÀ\ÂI¤º®e©M»ù®æ±a¥X¨Ó
°O¿ý¦bSheetsÄæ¦ì¸ÌÀY
¦pªG¤TÓÄæ¦ì¦³¤@Ó¨S¶ñ¤W
´N·|¥X²{ĵ§iµøµ¡!
´ú¸ÕÀÉ3.zip (27.49 KB)
µ{¦¡¦p¤U
==================================================
Private Sub CommandButton1_Click()
Dim A As Range
If Application.CountBlank(Sheet10.Range("A2:A99")) = 0 Then 'ÂI¿ïÀ\¸¹
Sheet10.[A100] = ComboBox1.Value
Else
Set A = [a1]
Do Until A = ""
Set A = A.Offset(1, 0)
Loop
A.Value = ComboBox1.Value
End If
If ComboBox1.Value = "" Then
MsgBox "±z¥ý¿ï¾Ü´X¸¹À\¡I"
Exit Sub
End If
If Application.CountBlank(Sheet10.Range("B2:B99")) = 0 Then 'À\ÂI¤º®e
Sheet10.[B100] = ComboBox2.Value
Else
Set A = [b2]
Do Until A = ""
Set A = A.Offset(1, 0)
Loop
A.Value = ComboBox2.Value
End If
gg = test4.TextBox1.Value '»ù¿ú
If Application.CountBlank([C2:C99]) = 0 Then Range("C100") = gg: Exit Sub
For Each A In [C2:C99]
If A = "" Then
A.Value = gg
Exit For
End If
Next
End Sub
Private Sub CommandButton2_Click()
test4.Hide
End Sub
Private Sub CommandButton3_Click()
Me.ComboBox1 = ""
Me.ComboBox2 = ""
Me.TextBox1 = ""
End Sub
Private Sub UserForm_Initialize()
ComboBox1.AddItem "¤@¸¹À\"
ComboBox1.AddItem "¤G¸¹À\"
ComboBox1.AddItem "¤T¸¹À\"
ComboBox2.AddItem "º~³ù¡BÁ¦±ø¡B¥i¼Ö"
ComboBox2.AddItem "Âû¶ô¡BÁ¦»æ¡B¬õ¯ù"
ComboBox2.AddItem "Á¦»æ¡BÁ¦±ø¡B¦B²N²O"
End Sub |
|
Jared
|
|
|
|
|