- ©«¤l
- 13
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 17
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2015-11-5
- ³Ì«áµn¿ý
- 2017-6-19
|
HI ¡Aª±¤@ª±¤Wzªº¤½¦¡¤S¦^¨Óµo°Ý¤F:P
1.
Sub ¿z¿ï()
Dim X$
X = Application.InputBox("½Ð¿é¤J¿z¿ïÃöÁä¦r")
If X = "" Or X = "False" Then Exit Sub
With Sheets("¤u§@ªí1").[A3] '
.Parent.AutoFilterMode = False
.AutoFilter Field:=1, Criteria1:="*" & X & "*"
If .End(xlDown).Row = Rows.Count Then MsgBox "§ä¤£¨ì¸ê®Æ!!": Exit Sub
.CurrentRegion.Sort Key1:=.Range("C3"), Order1:=xlAscending, Header:=xlYes
End With
End Sub
쥻·j´Mªº¬O²Ä¤@Äæ ¯Z¯Å¡AY§Ú·Q·j´Mªº¬O²Ä¥|Äæ ©Ê§O
§Ú¸Ó¦p¦óקï©O? §Ú¼Æ¦r³£§ï¹L¤F><"
2.
Sub ·j´M()
Dim X$, R&, xSht As Worksheet, M, j&, Jm&, xH As Range
R = ActiveSheet.UsedRange.Rows.Count
If R > 5 Then Rows("6:" & R).Delete
X = Application.InputBox("½Ð¿é¤J·j´MÃöÁä¦r")
If X = "" Or X = "False" Then Exit Sub
For Each xSht In Sheets(Array("¤u§@ªí1", "¤u§@ªí3", "¤u§@ªí4"))
Set xH = Range(Array("A6", "I6", "P6")(M))
M = M + 1: Jm = 0
With xSht
For j = 4 To .Cells(Rows.Count, 1).End(xlUp).Row
If InStr(.Cells(j, 1) & .Cells(j, 2), X) Then
Jm = Jm + 1
.Cells(j, 1).Resize(1, 6).Copy xH(Jm)
End If
Next j
If Jm = 0 Then MsgBox "¡e" & .Name & "¡f§ä¤£¨ì¡e" & X & "¡f¬ÛÃö¸ê®Æ!!":
End With
Next
End Sub
¤u§@ªí2ªº·j´M ·Q¼W¥[¥t¤@ºØ¤è¦¡
¤£¨Ï¥ÎINPUTBOX ¡Aª½±µ§ï¦¨ Äx²y©Î±Æ²y ¨âºØµ²ªG³£·j´M¥X¨Ó
¸Ó¦p¦óקï©O
¦A³Â·Ð«ü±Ð¡A±Ð¾É¤F¡A·PÁ¦A·PÁ |
-
-
¹Ï¤ù 4.png
(9.78 KB)
|