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

[µo°Ý] ¿ù»~1004

[µo°Ý] ¿ù»~1004

GOOGLE¤F¤@¤U¦n¹³±`±`¦³³oºØ±¡ªp

¶]¨ì ".Range(Cells(j, 1), Cells(j, 23)).Copy"
´Nµo¥Í¿ù»~¤F
§Ú¤@ª½§ì¤£¥X°ÝÃD@@

§Ú³æ¿W§ì¥X¿ù»~¨º¦æ°õ¦æÁÙ¥i¥H¶]

¤£ª¾¬O­þÃä¥X¿ù¤F

³Â·Ð¦U¦ì¤j¤jÀ°À°¦£  ÁÂÁ  :  )
  1. Sub CommandButton1_Click()

  2.     For i = 5 To 10
  3.         
  4.         MsgBox "Sheets: " & i
  5.         
  6.         With Worksheets(i)
  7.         
  8.         row_from = .Range("A35536").End(xlUp).row
  9.         
  10.         For j = 2 To row_from

  11.             If .Range("S" & j) <> 0 Then
  12.             MsgBox "Äæ¦ì: " & j
  13.             row_to = Worksheets(4).Range("A35536").End(xlUp).row + 1
  14.             .Range(Cells(j, 1), Cells(j, 23)).Copy      <------¿ù»~1004
  15.             Worksheets(4).Cells(row_to, 1).PasteSpecial Paste:=xlPasteAll
  16.             .Range(Cells(j, 1), Cells(j, 23)).Interior.Color = 65535

  17.             End If
  18.         Next
  19.         End With
  20.     Next
  21.    
  22. End Sub
½Æ»s¥N½X

¦^´_ 1# li_hsien
Sub CommandButton1_Click() ³oµ{§Ç¬O¤u§@ªíª«¥ó¼Ò²Õ¤¤ªºµ{§Ç ¹ï¶Ü?

  1.          With Worksheets(i)
  2.               .Range(.Cells(j, 1), .Cells(j, 23)).Copy      '¥¿½T
  3.              ' .Range(Cells(j, 1), Cells(j, 23)).Copy       '¿ù»~1004
  4.              ' ³oCells(j, 1), Cells(j, 23) ¬O³oµ{§Ç¤u§@ªíª«¥ó¼Ò²Õ¤¤ªºCells
  5.              '²Õ¦X¦b.Range( , )·|¿ù»~  1004
  6.          With End
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# GBKEE


ªO¤j§A¯uªº¬O±Ï¬P!!!

ÁÂÁ§A

·Q¯}ÀY¤@ª½§ä¤£¨ì ­ì¨Ó¬O®t¦b¨º¤p¤pªº¤@ÂI@@

TOP

¦^´_ 3# li_hsien
·Q¯}ÀY¤@ª½§ä¤£¨ì

©ñ¦b¤@¯ë¼Ò²Õ(Module)©Î ThisWorkbook,¤£·|¦³¿ù»~,¦ý .Range(Cells(j, 1), Cells(j, 23)).Copy      
³oCells(j, 1)¬O§@¥Î¤¤¤u§@ªíªºCells(j, 1),¤£¬OWith Worksheets(i)ªºCells(j, 1)
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# GBKEE

§ÚÁÙ¯u¤£ª¾¦³³o·L§®ªº®t²§

¦ý¦pªG .Range(.Cells(j, 1), .Cells(j, 23)).Copy

©ñ¦b¤@¯ë¼Ò²Õ(Module)©Î ThisWorkbook¤W

¤]¥i¥H¹B¦æ¶Ü???

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD