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

[µo°Ý] °j°é¥d¦í¨D±Ï

[µo°Ý] °j°é¥d¦í¨D±Ï

§Ú·Q­n·j´M³Ìªñ¤@­Ó¤ëªº³æ»ù¶ñ¦bZÄæ¤W
¤£¹L¤£ª¾¹D«ç¼Ë¦A·j´M¨ìªº®É­ÔÅý¥¦ª½±µ©¹¤U¤@¦C´M§ä
¤U­±¬O§Ú¥Ø«eªº¥N½X
  1. Sub ³æ»ù½T»{()
  2.     'Application.ScreenUpdating = False
  3.     c = Sheets("³æ»ù½T»{").[iv2].End(xlToLeft).Offset(, 1).Column
  4.     For n = 3 To Sheets("³æ»ù½T»{").Range("A65536").End(xlUp).Row
  5.     For nc = Sheets("³æ»ù½T»{").[iv2].End(xlToLeft).Column To 3 Step -1
  6.     Do While Cells(n, nc) > 0     Cells(n, c) = Cells(n, nc)
  7.     Loop
  8.     Next
  9.       Next
  10. End Sub
½Æ»s¥N½X
³æ»ù½T»{.rar (29.74 KB)
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

¦^´_ 1# freeffly
  1. '** AÄ椤¨S¸ê®Æ   =>1   ³oForªº°j°é¤£·|°õ¦æªº
  2. For n = 3 To Sheets("³æ»ù½T»{").Range("A65536").End(xlUp).Row
½Æ»s¥N½X
³o¦æµ{¦¡½X¦b³o¤u§@ªí¤¤¤£¾A¥Î : ³o¤u§@ªíC:YÄæ¨Ã«D¨C¤@¦C³£¦³¸ê®Æ,¦bC:YÄ椤¥ÎEnd(xlUp).Row ¨ú±o³Ì«á¸ê®Æ¦C,ªº¦C¼Æ·|¤£¥¿½T
  1. Sub ³æ»ù½T»{()
  2.     Dim n As Integer, R As Range, C As Integer
  3.     With Sheets("³æ»ù½T»{")
  4.         n = .Range("iv2").End(xlToLeft).Column + 1
  5.         For Each R In .UsedRange.Offset(2).Rows
  6.             For C = R.Cells.Count To 1 Step -1  '¥Ñ³Ì«áªºCells ¶}©l
  7.                 If R.Cells(C) <> 0 Then
  8.                     .Cells(R.Row, n) = R.Cells(C)
  9.                     Exit For
  10.                 End If
  11.             Next
  12.         Next
  13.     End With
  14. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE


    ·PÁª©¥D
    ªº½TAÄæ¸ê®Æ²MªÅ¦b³o­Óªí¥Ü¨S¿ìªk°õ¦æ
    ¥u·Q­n§â¤½¥q¸ê®Æ²M±¼¨S¥hª`·N¨ì
    ª©¥Dªº¤è¦¡®¼§Öªº
    ¾Ç²ß¤F
    ²Ä¤@¦¸¬Ý¨ìexit for «á¨Ó¬O·Q¨ìgo toªº¤è¦¡
    ¤£¹LÁÙ¨S¸Õ
    ª©¥Dªº¥N½X¬Û·í²M²n
    ¦A¦¸·PÁÂ
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 2# GBKEE
  ª©¥D
§Ú¦A±N§Aªºµ{¦¡½X®M¥Î¨ì¨ä¥Lªº¨Ò¤l
§Úµo²{§Ú¹ï§Aªºµ{¦¡½X¥i¯à¦³¤@¨Ç¤£¤F¸Ñ
1.¥i¥H¥ý°Ý¨Ì¤U§Ú¥Ø«e¼gªº ¿z¿ï°ÝÃD³o¦Uµ{¦¡½X ¸ò§A¤W­±ªº¤è¦¡ªº®t²§¦b¤°»ò¦a¤è?
2.§A¤W­±ªº¤è¦¡¤]¥i¥H§ï¦¨§Ú²{¦b³o¦U¨Ò¤l¶Ü?

§Ú·Q­n¥h¬Ý­þ¤@¤Ñ¬O¤@­Ó¤H¥[¯Z ·í­Ó¤H¥[¯Z®É¼Æ<>¥[Á`ªº¥[¯Z®É¼Æ«h¨º¤@Äæ§R°£
  1. Sub ¿z¿ï°ÝÃD()
  2.     For R = 7 To [A65536].End(xlUp).Row Step 3
  3.     For i = [iv5].End(xlToLeft).Column To 3 Step -1
  4.     If Cells(R, i) + Cells(R + 1) <> Cells(Range("A65536").End(xlUp).Row - 1, i) Then
  5.     Cells(5, i).EntireColumn.Delete
  6.     Exit For
  7.     Exit For
  8.     End If
  9.     Next
  10.     Next
  11. End Sub


  12. Sub ½T»{()
  13.     Dim C As Range, R As Integer
  14.     With ActiveSheet
  15.         'n = .Range("iv2").End(xlToLeft).Column + 1
  16.         For Each C In .UsedRange.Offset(5).Columns
  17.             For R = C.Cells.Count To 1 Step 3   '¥Ñ³Ì«áªºCells ¶}©l
  18.                 If C.Cells(R) <> Cells(19, C) Then
  19.                     Cells(5, C).EntireColumn.Delete
  20.                     Exit For
  21.                 End If
  22.             Next
  23.         Next
  24.     End With
  25. End Sub
½Æ»s¥N½X
Book1.rar (9.92 KB)
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

­è·Q¤F¨Ì¤U§Úªº³o¦U·s°ÝÃD
À³¸Ó¬O­n·j´M·í¤Ñ¸Ó²Õ­û¤u¥u¦³¤@­Ó¤H¥[¯Z
­ì¥»ªº«ä¦Ò¤è¦V¦n¹³¥Î³æ¯Â°j°é¨S¿ìªk¼g

¤£ª¾¹D¦r¨å¯à¤£¯à°µ¨ì

´À¥N¤è®×¦n¹³­n°µ»²§U¦C§PÂ_+°j°é
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD