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

[µo°Ý] for´`Àô²¤Æ¡A½ÐÀ°¦£

[µo°Ý] for´`Àô²¤Æ¡A½ÐÀ°¦£

¤@¡B½Ð°Ý«ç»ò²¤Æ
¤G¡B¬°¦ó³£¥u¦³¿ý¤JCells(51, n)?
Y = Sheets("¦¨¥æ«È¤á").Range("b65536").End(xlUp).Row
With Sheets("¦¨¥æ«È¤á")
   .Range("a" & Y + 1) = Sheets("¤é³øªí¿é¤J").Range("e2").Value '¤é´Á
      For n = 3 To 7
        .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(41, n).Value
      If Sheets("¤é³øªí¿é¤J").Cells(42, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(42, n).Value
               End If
      If Sheets("¤é³øªí¿é¤J").Cells(43, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(43, n).Value
               End If
                  Next n
      If Sheets("¤é³øªí¿é¤J").Cells(44, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(44, n).Value
               End If
      If Sheets("¤é³øªí¿é¤J").Cells(45, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(45, n).Value
               End If
      If Sheets("¤é³øªí¿é¤J").Cells(46, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(46, n).Value
               End If
                  Next n
      If Sheets("¤é³øªí¿é¤J").Cells(47, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(47, n).Value
               End If
      If Sheets("¤é³øªí¿é¤J").Cells(48, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(48, n).Value
               End If
      If Sheets("¤é³øªí¿é¤J").Cells(49, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(49, n).Value
               End If
                  Next n
      If Sheets("¤é³øªí¿é¤J").Cells(50, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(50, n).Value
               End If
      If Sheets("¤é³øªí¿é¤J").Cells(51, n).Value <> "" Then
           .Cells(Y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(51, n).Value
                End If
                  Next n

¦^´_ 1# olisun
Y = Sheets("¦¨¥æ«È¤á").Range("b65536").End(xlUp).Row   
With Sheets("¦¨¥æ«È¤á")
   .Range("a" Y + 1) = Sheets("¤é³øªí¿é¤J").Range("e2").Value '¤é´Á »yªk¿ù»~
    .Range("a" &Y + 1) = Sheets("¤é³øªí¿é¤J").Range("e2").Value '¤é´Á ¥¿½T

''''''''''''''''''''
Y¬O bÄæ³Ì«á¦³¸ê®Æªº¦C¸¹ ±a¤JAÄæ ->   .Range("a" &Y + 1)  ³o¼Ë¬O§Aªº¥Î·N¶Ü
²¤Æ¦p¤U
  1. With Sheets("¦¨¥æ«È¤á")
  2. y = .Range("b65536").End(xlUp).Row
  3. .Range("a" & y + 1) = Sheets("¤é³øªí¿é¤J").Range("e2").Value '¤é´Á
  4. For n = 3 To 7
  5. .Cells(y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(41, n).Value
  6. For i = 42 To 51
  7. If Sheets("¤é³øªí¿é¤J").Cells(i, n).Value <> "" Then
  8. .Cells(y + 1, n - 1) = Sheets("¤é³øªí¿é¤J").Cells(i, n).Value
  9. End If
  10. Next i
  11. Next n
  12. End With
½Æ»s¥N½X

TOP

¹B¦æµ²ªG
¤@¡BFor n = 3 To 7     3³o¤@­Ó¨S¦³Åã¥Ü¸ê®Æ
¤G¡BFor i = 42 To 51   ¥u¦³²Ä51³o­Ó
¤T¡B§Ú§Æ±æ¬O¦pªG   Sheets("¤é³øªí¿é¤J")ªºb42:b51³£¦³¼Æ¾Ú«h§âb42:g51ªº¼Æ¾Ú³£¶ñ¤J¨ìSheets("¦¨¥æ«È¤á")a:f(±qa2¶}©l)¡A¦pªG¥u¦³b42:b44¦³¼Æ¾Ú¡A«h§âb42:g44¼Æ¾Ú¶ñ¤J¡C

TOP

¦^´_ 3# olisun
§A¥uªþ¤W¤@¬qµ{¦¡½X §Aªº¸ÑÄÀ­n¥Î²q´úªº ¥i¥HªþÀÉ»¡©ú¶Ü?

TOP

        ÀR«ä¦Û¦b : ·O´d¨S¦³¼Ä¤H¡A´¼¼z¤£°_·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD