- ©«¤l
- 967
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1001
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-11-29
- ³Ì«áµn¿ý
- 2022-5-17
|
¦^´_ 5# tonycho33
¶Wª©,ª©¥D¤j·§¬O¨S¦³§@¤£¥X¨Óªº°ÝÃD
«ÂI¬O§Æ±æµo°ÝªÌ:
1.¨Æ¥ý§@¦n¥\½Ò,§â§Æ±æªº¥\¯à´yz²M·¡,¤£n¤Ï¤ÏÂÐÂÐ,§ï¨Ó§ï¥h(´X¦¸«á¯uªº¨S¤H·QÀ°)
2.ªþ¤WEXCELÀÉ®×,¼Æ¾ÚÀ³§â©Ò¦³¥i¯àªº±¡§Î³£¦Ò¼{¶i¨Ó
SHEET B¤§KÄ椣¥i¦³¸ê®Æ
¦P¤@¤u³æY¦³ªº§¹¦¨,¦³ªº¥¼§¹¦¨¦³®É·|¤À¶}Åã¥Ü(À³¥i±µ¨ü§a)- Sub Ex() '1.±NA SHEET¦s¨ìB SHEET ·íJÄ榳¥X²{¥ô¦óÈ
- Dim xText As String
- xText = "<>"
- Data_Copy 10, xText
- End Sub
- Sub ExA() '2.«ö¤U«ö¶s®É(¹ïÀ³¤u³æ¸¹½X),¸Ó¤u³æ¹ïÀ³ªº©Ò¦³¦C´N½Æ»s¨ìB SHEETªÅ¥Õ³B
- Dim xText As String
- xText = ActiveSheet.Shapes(Application.Caller).TextFrame.Characters.Text
- Data_Copy 1, xText
- End Sub
- Private Sub Data_Copy(xF As Integer, xCriteria As String)
- Dim Sh As Worksheet
- Application.ScreenUpdating = False
- Application.DisplayAlerts = False
- With Sheet7 'Sheets("A")
- .AutoFilterMode = False
- .Range("a1").AutoFilter Field:=xF, Criteria1:=xCriteria
- Set Sh = Sheets.Add
- .UsedRange.SpecialCells(xlCellTypeVisible).Copy Sh.[a1]
- Sh.UsedRange.Offset(1).Copy Sheet6.Cells(Rows.Count, "A").End(xlUp).Offset(1)
- 'Sheet6->Sheet("B")
- Sh.Delete
- .AutoFilterMode = False
- .Activate
- End With
- Call deleterow '§R°£B¤u§@ªí¤§«ÂЦC
- Application.ScreenUpdating = True
- Application.DisplayAlerts = True
- End Sub
- Sub deleterow() '§R°£B¤u§@ªí¤§«ÂЦC
- With Sheet6
- R = .[A65536].End(xlUp).Row
- For RM = 2 To R
- For MM = 1 To 9 'SHEET B¤§KÄ椣¥i¦³¸ê®Æ
- .Cells(RM, 11) = .Cells(RM, 11) & .Cells(RM, MM)
- Next MM
- Next RM
- For I = 2 To R Step 1
- If (WorksheetFunction.CountIf(.Columns(11), .Cells(I, 11)) > 1) Then
- .Rows(I).Delete
- I = I - 1
- End If
- Next
- .Columns(11) = ""
- End With
- End Sub
½Æ»s¥N½X
Book1111.rar (48.49 KB)
|
|