- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2013-8-30 15:25 ½s¿è
¦^´_ 16# yliu
#17 ¼Ó¬O³æ¿ï¡A§A¤]¥i¥H§ï¬°¦h¿ï¡G- Private Sub CommandButton1_Click()
- Dim g As Integer, E As Range, C As Range, ³æ¸¹ As String, SS As String, Rng As Range
- Dim i As Integer
-
- With Sheets("login")
- ³æ¸¹ = .ListBox2.Value
- Set Rng = .[B14:B24]
- SS = Application.Phonetic(Rng) ' µ²¦X©Ò¦³§Ç¸¹
- End With
-
- With Sheets("final").[A:A]
- If Application.CountIf(.Cells, ³æ¸¹) > 1 Then
- .Replace ³æ¸¹, "=xxx", xlWhole ' Replace ¤èªk
- With .SpecialCells(xlCellTypeFormulas, xlErrors)
- .Cells = ³æ¸¹
- For Each C In .Cells ' ¤ñ¹ï¨ì §Ç¸¹ ½ð°£ ¦¹§Ç¸¹
- If InStr(SS, C.Offset(, 1)) Then SS = Replace(SS, C.Offset(, 1), "") ' Replace ¨ç¼Æ
- If SS = "" Then Exit Sub
- Next
- End With
- End If
-
- For Each E In Rng
- If E = "" Then Exit For
-
- If InStr(SS, E) Then ' ¤ñ¹ï¨ì §Ç¸¹
- g = Application.CountA(.Cells) + 1 ' Ū¨úAø󦳸ê®Æ¼ÆªºÀx¦s®æ¼Æ +1
- i = Application.CountA(Rng)
-
- .Cells(g, "A").Resize(1) = ³æ¸¹
- .Cells(g, "B").Resize(1, 2) = E.Cells(1).Resize(1, 2).Value
- .Cells(g, "D").Resize(1, 6) = E.Cells(1, 4).Resize(1, 6).Value
- End If
- Next
- End With
-
- With Sheets("login")
- .ListBox1.Clear
- .[A14:E24] = ""
- .ListBox2 = ""
- End With
- End Sub
½Æ»s¥N½X ¼W¥[³Ì«á¤¦æ (37 ~ 41)¡C- Private Sub ListBox2_Change()
- Dim i As Integer, R As Integer
-
- ' ListBox1.Clear
- Sheets("login").[A14:E24] = ""
-
½Æ»s¥N½X ±N ListBox1.Clear Remark °_¨Ó¡C |
|