¡@¼ÊºÙ: 温©_ ¡@ÀY»Î: ij½×ªÌ
¤¤¾Ç¥Í
- ©«¤l
- 104
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 110
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-11-14
- ³Ì«áµn¿ý
- 2019-4-30
|
¦^´_ 11# Qin
·j´M¸ê®Æ.xlsm- Sub ·j´Mªí³æ()
- Dim F1, F2 As Variant
- F1 = Sheets("·j´M").Range("B1")
- Sheets("·j´M").Select
- Sheets("·j´M").Range([A3], [J3].End(xlDown)) = ""
- If F1 = "" Then
- MsgBox "±z¥¼¿é¤J±ø¥ó"
- Exit Sub
- End If
- For I = 2 To Sheets("¸ê®Æ®w").UsedRange.Rows.Count
- If Sheets("¸ê®Æ®w").Cells(I, 4) = F1 Or Sheets("¸ê®Æ®w").Cells(I, 6) = F1 Or Sheets("¸ê®Æ®w").Cells(I, 7) = F1 Then
- Worksheets("¸ê®Æ®w").Range("A" & I, "J" & I).Copy Destination:=Worksheets("·j´M").Range("A" & Application.CountA(Sheets("·j´M").Columns("A:A")) + 1)
- End If
- Next I
- MsgBox "±z¿é¤J" & "±ø¥ó" & "[ " & F1 & " ]" & "¦@p" & Application.CountA(Sheets("·j´M").Columns("A:A")) - 2 & "µ§¸ê®Æ"
- End Sub
½Æ»s¥N½X ·j¯Á¸ê®Æ1- Sub Serach()
- Application.DisplayAlerts = False
- Application.ScreenUpdating = False
- Dim a, b, c As String
- Dim f1, f2, f3 As Workbook
- Set f1 = Sheets("¸ê®Æ®w")
- Set f2 = Sheets("·j´M¸ê®Æ")
- a = Application.InputBox("½Ð¿é¤J¬d¸ßªº¶µ¥Ø¥N½X:1.¤½¥q 2.½s¸¹ 3.«~¦W", "¿é¤J·j´M¶µ¥Ø")
- b = Application.InputBox("½Ð¿é¤J¬d¸ßªº¤º®e¦WºÙ", "¿é¤J·j´M¤º®e")
- If a = "" Or a = False Or b = "" Or b = False Then
- Exit Sub
- Else
- Select Case a
- Case "1"
- X = 3
- Case "2"
- X = 5
- Case "3"
- X = 6
- Case Else
- Exit Sub
- End Select
- f1.Select
- For Each aa In Range([A2], [A2].End(xlDown))
- If aa.Offset(, X) = b Then
- f2.Select
- n = n + 1
- NextRow = Cells(Rows.Count, 2).End(xlUp).Row + 1
- Cells(NextRow, 1) = n
- Cells(NextRow, 2).Resize(1, 9) = aa.Offset(0, 1).Resize(1, 9).Value
- Cells(NextRow, 15).Resize(1, 1) = aa.Offset(0, 0).Resize(1, 1).Value
- End If
- Next
- End If
- f2.Cells(1, 15) = "total: " & Application.CountA(f2.Range("A:A")) - 1
- f2.Select
- Application.DisplayAlerts = True
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X- Sub clase()
- [A3:O60000] = ""
- [O1] = "total: 0"
- End Sub
½Æ»s¥N½X |
|