- ©«¤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
|
¦^´_ 9# yanto913 - Option Explicit
- Sub ¬d¸ß¥\¯à()
- Dim Ex_Name As String, Ex_¤½¥q
- 'Name ¬OVBAªºÃöÁä¦r½ÐÁקK¨Ï¥Î
- 'Ãö³¬Åã¥Ü
- Application.ScreenUpdating = False
- With Sheets("¬d¸ß")
- Ex_Name = .Range("F1") '©m¦W
- Ex_¤½¥q = .Range("B1") '¤½¥q
- ' .UsedRange.Offset(2).Clear '²M°£Â¦³ªº¬d¸ß
- End With
- With Sheets("Ápµ¸¤H")
- G = .[B65536].End(xlUp).Row
- For I = 2 To G
- '¸U¥Î¦r¤¸¦¬´M
- ' If .Cells(I, 2) Like "*" & Ex_Name & "*" Then '¥u¬d©m¦W
- If .Cells(I, 1) Like "*" & Ex_¤½¥q & "*" And .Cells(I, 2) Like "*" & Ex_Name & "*" Then '¬d ©m¦W¤Î¤½¥q
- 'If .Cells(I, 1) Like "*" & Ex_¤½¥q & "*" Or .Cells(I, 2) Like "*" & Ex_Name & "*" Then '¥i¬d©m¦W Or ¤½¥q
- .Range(.Cells(I, 1), .Cells(I, 10)).Copy
- c = Sheets("¬d¸ß").[a65536].End(xlUp).Row
- Sheets("¬d¸ß").Cells(c + 1, 1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
- :=False, Transpose:=False
- End If
- Next I
- End With
- Application.ScreenUpdating = True '¶}±ÒÅã¥Ü
- End Sub
½Æ»s¥N½X |
|