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

[µo°Ý] Ãö©óFor°j°éªº¨Ï¥Î(¤w¸Ñ¨M)

[µo°Ý] Ãö©óFor°j°éªº¨Ï¥Î(¤w¸Ñ¨M)

¥»©«³Ì«á¥Ñ av8d ©ó 2011-8-15 12:11 ½s¿è
  1. Private Sub CommandButton1_Click()

  2.     '½Æ»s¥DÀÉ®×
  3.     Range("A1:H44").Select
  4.     Selection.Copy
  5.    
  6.     '¶K¤W2.3.4...­¶­±
  7.     Range("A54:D97").Select
  8.     ActiveSheet.Paste

  9.     Range("A107:D150").Select
  10.     ActiveSheet.Paste
  11.     '¡D
  12.     '¡D
  13.     '¡D
  14.     Range("A478:D521").Select
  15.     ActiveSheet.Paste

  16.    
  17.     '½Õ¾ã¦C°ª
  18.     Rows("45:53").Select
  19.     Selection.RowHeight = 16.5
  20.    
  21.     Rows("98:106").Select
  22.     Selection.RowHeight = 16.5
  23.     '¡D
  24.     '¡D
  25.     '¡D
  26.     Rows("469:477").Select
  27.     Selection.RowHeight = 16.5


  28. End Sub
½Æ»s¥N½X
¤¤¶¡¨C¦¸¶K³£·|¥X²{"±z­n¨ú¥N¥Ø¼ÐªºÀx¦s®æ¶Ü?"

§Ú­pºâ¥X¥L­Ìªºµ¥®t=53

¥¼¨Ó§Ú¥´ºâ§Q¥ÎTextbox¶ñ¤J«á°õ¦æ

½Ð°Ý¦³¤j¤j¥i¥H«ü¾É¤@¤U¤ñ¸û§Öªº¼gªk¶Ü? ¤£¤@©w­n¥ÎFor°j°é¤]¥i¥H

°j°éªì¨B·§©À¦p¤U
Dim r1=1 , r2=44
Range("A" & r1 & ":H" & "r2").Select
For r1<478 then
    r1=r1+53
Next

For r2<521 then
    r2=r2+53
Next

¤£ª¾¹D¹ï¤£¹ï? ·Ð½Ð¦U¦ì¤j¤j«ü¾É¤F!

------------------------------------------------------------------------
·PÁÂ2¼Ó¤j¤j~GBKEE¤j¤j±zµ¹ªº¥¿¬O§Ú­nªºµª®×~¦A¦¸·PÁ¨â¦ì!
                                                                                          2011/8/15 ¯d
------------------------------------------------------------------------

¦^´_ 1# av8d

°j°éªì¨B·§©À¦p¤U
Dim r1=1 , r2=44
Range("A" r1 & ":H" & "r2").Select
For r1<478 then
    r1=r1+53
Next

For r2<521 then
    r2=r2+53
Next

¼Ó¥Dªº»yªk¦³»~­ò~  
FORªº»yªkÀ³¸Ó¬O¤U­z¤è¦¡ (±q¦h¤Ö¨ì¦h¤Ö)
for i =1 to 100 ...... next

§A¥i¥H¨Ï¥ÎDo ....Loopªº¤è¦¡¥i¥H¤Wr1»Pr2²Ö¥[¨ìº¡¨¬©pªº±ø¥ó¤UÂ÷¶}~

¦Ü©ó¼Ó¥D­nªº¸Ñ¨M¤è¦¡~ ¬O§_´£¨ÑÀÉ®×~ ¥i¥H¤ñ¸û²M·¡ª¾¹D¼Ó¥D§A­nªºµ²ªG¬O¤°»ò....
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

¦^´_ 1# av8d
  1. Sub Ex()
  2.     Dim i As Integer
  3.     With ActiveSheet
  4.         .[A1:H44].Copy
  5.         For i = 53 To 477 Step 53
  6.             .Paste Range("a" & i)
  7.             .Rows(i & ":" & i + 43).RowHeight = 16.5
  8.         Next
  9.     End With
  10.     Application.CutCopyMode = False
  11. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# GBKEE

¬ðµMµo²{¤@­Ó°ÝÃD~¦b½Æ»sªº®É­Ô~¤¤¶¡ªº²Ä12,34¦C~¦V¤U½Æ»s«á~¤U¤èªº¹ïÀ³¦C~¼e«×³£·|Åܼe(­ì¼e«×16.5)~½Ð°Ý§Ú¬O§_ÁÙ¦³¤UFor°j°é¥h¨î©w¥Lªº¼e«×©O?ÁÙ¬O¦³¨ä¥L¤èªk?
Àɮצp¤U:
    1.rar (13.77 KB)

TOP

        ÀR«ä¦Û¦b : °µ¦n¨Æ¤£¯à¤Ö§Ú¤@¤H¡A°µÃa¨Æ¤£¯à¦h§Ú¤@¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD