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

Àx¦s®æµ{¦¡¸Ó¦p¦ó°}¦C´`Àô

¦^´_ 1# yueh0720
  1. Sub Ex()
  2.     Dim i As Integer
  3.     'With  ¦b¤@­Ó³æ¤@ª«¥ó©Î¤@­Ó¨Ï¥ÎªÌ¦Û­q«¬ºA¤W°õ¦æ ->  ¤@¨t¦Cªº³¯­z¦¡¡C
  4.     With ActiveSheet                   '§@¥Î¤¤ªº¤u§@ªí
  5.         '*** ¤@¨t¦Cªº³¯­z¦¡  «e­±¦³¤@ . (ÂI) ªí¬°  ActiveSheetªºCells(i, "P")
  6.         '¨Ò:  .Cells(i, "A"), ¨Ò: .Cells(i, "C"), ¨Ò:  .Cells(i, "P")
  7.         i = 2
  8.         Do While .Cells(i, "A") <> ""  '°õ¦æDoªº±ø¥ó: ¥ÑA2©¹¤Uª½¨ìAÄ檺Àx¦s®æµL¸ê®Æ
  9.             If .Cells(i, "P") <> "" And IsNumeric(.Cells(i, "P")) Then
  10.                 '<> ""(¤£¬OªÅ¥Õ) AND ¬O¼Æ­È
  11.                 .Cells(i, "C").Resize(1, 12) = .Cells(i, "P").Resize(1, 12).Value
  12.                 '.Resize(1, 12)->¶Ç¦^ 1¦C,12Äæ ªº½d³ò
  13.                 'Resize ÄÝ©Ê ½Õ¾ã«ü©wªº½d³ò¡C¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí½Õ¾ã«áªº½d³ò¡C
  14.             End If
  15.         i = i + 1
  16.         Loop
  17.     End With
  18. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD