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

[µo°Ý] ¥Î²Å¸¹¥h¹ïÀ³¤H¦W°µ¥X¦W³æ

¥ÎVBA, VBA code ¦p¤U:
Sub ²Î­p©ñ°²¦W³æ()
   Dim x, y As Object
   Dim i, j, k As Integer
   Dim str1 As String
   Dim Colindx(5) As Integer
   Set x = Sheets("©ñ°²¦W³æ")
   Set y = Sheets("²Î­pªí")
   
   y.Range("D3:X72").ClearContents
   
   '¦C¼Æ(i+2)¥Nªí¤é´Á
   For i = 1 To 31
   
      'Colindx(k)¥Nªí"²Î­pªí"ªºÄæ¼Æ­p¼Æ¾¹
      For k = 1 To 5
         Colindx(k) = 3
      Next
      
     'Äæ¼Æ(j-2)¥Nªí­û¤u¼Æ
      For j = 3 To 18
         str1 = x.Cells(i + 2, j)
         Select Case str1
            Case Is = "¡¾"
               Colindx(1) = Colindx(1) + 1
               y.Cells(i * 5 - 2, Colindx(1)) = x.Cells(2, j)
            Case Is = "¡³"
               Colindx(2) = Colindx(2) + 1
               y.Cells(i * 5 - 1, Colindx(2)) = x.Cells(2, j)
            Case Is = "¡·"
               Colindx(3) = Colindx(3) + 1
               y.Cells(i * 5, Colindx(3)) = x.Cells(2, j)
            Case Is = "¡¼"
               Colindx(4) = Colindx(4) + 1
               y.Cells(i * 5 + 1, Colindx(4)) = x.Cells(2, j)
            Case Is = "¡¸"
               Colindx(5) = Colindx(5) + 1
               y.Cells(i * 5 + 2, Colindx(5)) = x.Cells(2, j)
         End Select
      Next
   Next
End Sub
©ñ°²¦W³æ¦p¤U:

²Î­pªí°õ¦æµ²ªG¦p¤U:

TOP

¦^´_ 3# domotomomo

¸É ExcelÀɮצp¤U¡G
©ñ°²¦W³æ.rar
https://www.mediafire.com/?qf979x7bdwc16hy

TOP

        ÀR«ä¦Û¦b : «Ý¤H°h¤@¨B¡A·R¤H¼e¤@¤o¡A´N·|¬¡±o«Ü§Ö¼Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD