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

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

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

Àx¦s®æµ{¦¡¸Ó¦p¦ó°}¦C´`Àô
¦pªþ¥ó
1.rar (10.52 KB)

¦^´_ 1# yueh0720
  1. k1 = ActiveSheet.Range("A1").CurrentRegion.Rows.Count


  2. ²©öªº¸Ñªk..
  3. ¥tªþ¤W ­YP¦³¼Æ­È¡A«hC-N ¥H²HÂŦâÅã¥Ü


  4. For ap = 1 To k1
  5.     If Cells(ap, "p") <> "" Then
  6.         For ap1 = 3 To 14
  7.         Cells(ap, ap1) = Cells(ap, ap1 + 13)
  8.         
  9.             Cells(ap, ap1).Select
  10.             With Selection.Interior
  11.                 .Pattern = xlSolid
  12.                 .PatternColorIndex = xlAutomatic
  13.                 .ThemeColor = xlThemeColorAccent5
  14.                 .TintAndShade = 0.599993896298105
  15.                 .PatternTintAndShade = 0
  16.             End With

  17.         Next
  18.     End If

  19. Next
½Æ»s¥N½X

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 2# mark15jill


Àx¦s®æC3·|¥X²{" ActiveSheet.Paste"
ÃC¦â³¡¤À·|¥X²{¿ù»~¡A±N¦¹3¶µ©¿²¤«hOK
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0

TOP

¦^´_ 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

¦^´_  mark15jill


Àx¦s®æC3·|¥X²{" ActiveSheet.Paste"
ÃC¦â³¡¤À·|¥X²{¿ù»~¡A±N¦¹3¶µ©¿²¤«hOK
.Th ...
yueh0720 µoªí©ó 2013-3-11 11:46




¥H¤U³o¬q¥i¿ï¾Ü­n¤£­n+...
                Cells(ap, ap1).Select

            With Selection.Interior

                .Pattern = xlSolid

                .PatternColorIndex = xlAutomatic

                .ThemeColor = xlThemeColorAccent5

                .TintAndShade = 0.599993896298105

                .PatternTintAndShade = 0

            End With



        Next

    End If

  ¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~

  ¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
  ¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡­n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
  ¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk

  ¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM

TOP

¦^´_ 1# yueh0720
  1. Sub ex()
  2. With ActiveSheet
  3. For Each a In .Range("P:P").SpecialCells(xlCellTypeConstants, xlNumbers)  'PÄæ¼Æ­ÈÀx¦s®æ
  4.    With a.Offset(, -13).Resize(, 12)
  5.       .Value = a.Resize(, 12).Value
  6.    End With
  7. Next
  8. End With
  9. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD