Sub test2()
Dim i!, a1$, a2$, r As Range
Columns(5).ClearContents
i = 4
Set r = Range("A:A").Find(1)
a1 = r.Address
Do Until a1 = a2
If r.Offset(, 1) = 10 Then
Cells(i, 5) = r.Offset(, 2)
i = i + 1
End If
Set r = Range("A:A").FindNext(r)
a2 = r.Address
Loop
End Sub
来个高手解释下这段代码 一句一句的解释 谢了
å¢å äºä¸è¡ä»£ç ãé²æ¢æ²¡æ1çæ åµåºéã
追é®å ¶å®æåªæ¯æ³è®¡ç®ä¸ä¸é»è²éé¢ä¸º1并ä¸çº¢è²éé¢ä¸º10 çæ°æ® ææ³å¨æé»è²å红è²çæ°æ®ä¸èµ·æ¾ç¤ºåºæ¥è¯·é®è¯¥æä¹å
è¿æ®µä»£ç åªæ¾ç¤ºåºäº
æè¿æ³æé»è²è·çº¢è²çä¹æ¾ç¤ºåºæ¥
追çå»ºè®®ä½ ç¨è¾ å©åD4=A4 & "|" & B4ç¶åå¨D4çéã
å»ºè®®ä½ ç¨è¾ å©åD4=A4 & "|" & B4ç¶åå¨D4çéã