- ©«¤l
- 254
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 310
- ÂI¦W
- 0
- §@·~¨t²Î
- W10
- ³nÅ骩¥»
- Excel 2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2019-6-16
- ³Ì«áµn¿ý
- 2024-9-23
|
¥»©«³Ì«á¥Ñ °a¤ªºµ ©ó 2020-10-8 12:31 ½s¿è
¦^´_ 13# wei9133
³o¤£¬O¥Î¿z¿ï ¦Ó¬O¥Î¤ñ¹ïªº¤è¦¡
§A¬Ý¤@¤U¬O¤£¬O³o¼Ë?- Public Sub ¤ñ¹ï½m²ß()
- Application.ScreenUpdating = False
- Dim A, B, i, k
- k = 1
- E = 345
- For X = 1 To Cells(1, 1).End(xlDown).Row
- A = Range(Cells(X, 49), Cells(X, 1))
- B = Range(Cells(X, 99), Cells(X, 51))
-
- For i = 1 To UBound(B, 2)
- If A(1, k) = "" Then A(1, k) = "-"
- If B(1, i) = "" Then B(1, i) = "-"
- f = f & A(1, k)
- r = r & B(1, i)
- If k <= UBound(A, 2) Then k = k + 1
- Next i
-
- k = 1
-
- If f = r Then
- Cells(E, 1).Resize(1, 104) = Cells(X, 1).Resize(1, 104).Value
- E = E + 1
- End If
-
- f = "": r = ""
- Next X
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|