- ©«¤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 ©ó 2012-10-19 15:26 ½s¿è
¦^´_ 5# JEAN
¸Õ¸Õ¬Ý- '[»â¥Î³æ]³¡ªù³æ¦ì¡G B3 ¦³ÅÜ°Ê ->¥Ó½Ð¤H¦W¦r¡G B4 ·|§óµÛÅܰʦW³æ
- Private Sub CommandButton1_Click()
- º¶
- End Sub
- Private Sub CommandButton2_Click()
- Sheets("»â¥Î°O¿ý©ú²Óªí").Visible = True
- Sheets("»â¥Î°O¿ý©ú²Óªí").Select
- Me.Visible = False
- End Sub
- Private Sub Worksheet_Activate() '»s©w³¡ªù³æ¦ìªºÅçÃÒ, [»â¥Î³æ]¤u§@ªí¬°§@¥Î¤¤®Éªº¹w³]¥ó
- Dim Ar As String, xI As Integer
- With Sheets("¤Hû¸ê®Æ").[E2]
- xI = 2
- Do While .Cells(xI) <> ""
- If Ar = "" Then
- Ar = "," & .Cells(xI, 1)
- Else
- If InStr(Ar, "," & .Cells(xI)) & "," = 0 Then Ar = Ar & "," & .Cells(xI)
- End If
- xI = xI + 1
- Loop
- End With
- With Range("B3").Validation
- .Delete
- If Ar <> "" Then .Add xlValidateList, , , Mid(Ar, 2)
- End With
- End Sub
- Private Sub Worksheet_Change(ByVal Target As Range)
- Application.EnableEvents = False
- If Target(1).Address(0, 0) = "B3" Then
- If Target(1) = "" Then Range("B4") = ""
- ÅçÃÒB4
- End If
- Application.EnableEvents = True
- End Sub
- Private Sub ÅçÃÒB4()
- Dim Ar As String, xI As Integer
- With Sheets("¤Hû¸ê®Æ").[A2]
- xI = 2
- Do While .Cells(xI) <> ""
- If .Cells(xI) = [B3] Then
- If Ar = "" Then
- Ar = "," & .Cells(xI, 3) '¤¤¤å©m¦W ¦b²Ä3Äæ
- Else
- If InStr(Ar, "," & .Cells(xI, 3) & ",") = 0 Then Ar = Ar & "," & .Cells(xI, 3)
- End If
- End If
- xI = xI + 1
- Loop
- End With
- With Range("B4").Validation
- .Delete
- If Ar <> "" Then .Add xlValidateList, , , Mid(Ar, 2)
- End With
- End Sub
½Æ»s¥N½X |
|