- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2014-6-20 15:16 ½s¿è
¦^´_ 7# ii31sakura - Sub TEST2()
- Dim ar, ar1, ar2, i, j
-
- With Worksheets("data")
- ar = .Range(.[C2], .Cells(.Rows.Count, "D").End(xlUp)).Value
- For i = 1 To UBound(ar)
- ar1 = Split(ar(i, 1), vbLf): ar2 = Split(ar(i, 2), vbLf)
- If UBound(ar1) <> UBound(ar2) Then MsgBox "Error : ¥X²{Àx¦s®æ¤º¦æ¼Æ¤£¤@P": End
- For j = LBound(ar1) To UBound(ar1)
- If Split(ar1(j), "-")(0) <> Split(ar2(j), "-")(0) Then MsgBox "Error : ¥X²{½s¸¹¤£¤Ç°t": End
- ar1(j) = ar2(j) & String(5, " ") & "·lÃa*" & Split(ar1(j), "-")(1)
- Next
- ar(i, 1) = Join(ar1, vbLf)
- Next
- ReDim Preserve ar(1 To UBound(ar), 1)
- .[B2].Resize(UBound(ar)) = ar
- End With
- End Sub
½Æ»s¥N½X |
|