<br/>Sub 连接()<br/>Dim x, y, z As Integer<br/>Dim email As String<br/>For x = 2 To Range("A65536").End(xlUp).Row Step 20<br/>y = Range("C65536").End(xlUp).Row + 1<br/> For z = 1 To 20<br/> If email = "" And Cells(x + z - 1, 1).Value <> "" Then<br/> email = Cells(x + z - 1, 1).Value<br/> ElseIf email <> "" And Cells(x + z - 1, 1).Value <> "" Then<br/> email = email & "," & Cells(x + z - 1, 1).Value<br/> End If<br/> Next z<br/>Cells(y, 3) = email<br/>email = ""<br/>Next x<br/>End Sub
[此贴子已经被作者于2007-12-23 16:15:03编辑过] |