|
祝您好运:- Sub wanao()
- Dim x As Integer, y As Integer, a As Integer
- Dim str As String, s(1 To 2) As String
- s(1) = "/0~1~2~3~4"
- s(2) = "/0~1~2~3"
- For x = 1 To 3
- a = 0
- str = ""
- For y = 1 To 13
- If Cells(x, y) <> "" Then a = a + 1 Else Exit For
- If str = "" Then str = Cells(x, y) Else str = str & "," & Cells(x, y)
- Next
- If a > 10 Then str = str & s(1) Else str = str & s(2)
- Cells(x, "n") = str
- Next
- End Sub
复制代码 |
评分
-
查看全部评分
|