ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¸ê®ÆÂà¸mªº¤p°ÝÃD

¦^´_ 2# lpk187
¤@¦¸ªº°j°é
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Ar(), i As Integer
  4.     With Range([B2], Range("b2").End(xlToRight).End(xlDown))
  5.         ReDim Ar(1 To .Count, 1 To 2)
  6.         For i = 1 To .Count
  7.             Ar(i, 1) = .Cells(i).End(xlToLeft) & .Cells(i).End(xlUp)
  8.             Ar(i, 2) = .Cells(i)
  9.         Next
  10.         .Cells(.Rows.Count + 2, 1).Resize(.Count, 2) = Ar
  11.     End With
  12. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# lpk187


    :loveliness:
¥i¥H¨Ï¥Î~~¯«¨Ó¤@¸Ñ~~
¨C¦¸³£¬O¤j¤j¸Ñ´b¤§
¤Ó·PÁ¤F~:)
¾Ç²ß¤¤~

TOP

¦^´_ 1# boblovejoyce

¸Õ¸Õ¬Ý§a¡I
  1. Sub test()
  2. Dim arr1()
  3. en = Cells(Rows.Count, 1).End(xlUp).Row
  4. arr = Range("b2:c" & en)
  5. x = 1
  6. j = 1
  7. For Each Rng In Range("a2:a" & en)
  8.     i = 1
  9.     For Each rng1 In [b1:c1]
  10.         ReDim Preserve arr1(1 To 2, 1 To x)
  11.         arr1(1, x) = Rng & rng1
  12.         arr1(2, x) = arr(j, i)
  13.         x = x + 1: i = i + 1
  14.     Next
  15.     j = j + 1
  16. Next
  17. [F1].Resize(UBound(arr1, 2), 2) = Application.Transpose(arr1)
  18. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD