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

[µo°Ý] ­«½Æ¦C¼Æ²¾°Ê¦Ü·s¤u§@ªí

[µo°Ý] ­«½Æ¦C¼Æ²¾°Ê¦Ü·s¤u§@ªí

·Q½Ð±ÐVBA°µªk¦p¤U:

"Á`ªí" ¤¤¨C4¦C¼Æ¾Ú¬°¤@²Õ -> ¶}·s¤u§@ªí-> ±N¨C3²Õ(¦@12¦C)¸ê®Æ³s®æ¦¡²¾°Ê¦Ü·s¤u§@ªí.

¨D±Ð! ¨C3²Õ²¾°Ê·s¤u§@ªí.rar (10.52 KB)

RE: ­«½Æ¦C¼Æ²¾°Ê¦Ü·s¤u§@ªí

¦^´_ 2# lpk187

·PÁ«ü¾É !

TOP

¦^´_ 2# lpk187

§A¦n, §Ú·Q±NÁ`ªíªº©Ò¦³FORMAT, ¥]¬AÄæ¼e¤Î¦C°ª¤ÎFONT³£COPY¨ì¨C¤@±i¤u§@ªí, ¦]·í¤¤¦³±ø½X, ©Ò¥H¥²¶·³sFORMAT¤@¨ÖCOPY, ¤w¥[¤U¦C¥N½X, ¦ý¥u¥iCOPYÃC¦â, ½Ð±Ð¬O¨º¤@¥y¤í¤F? ¨C3²Õ²¾°Ê·s¤u§@ªí20150929.rar (18.77 KB)
  1. Sub ex()
  2.     On Error Resume Next
  3.     With Sheets("Á`ªí")
  4.     x = 1: y = 3
  5.         ro = .Cells(Rows.Count, 1).End(xlUp).Row
  6.         For I = 1 To ro Step 12
  7.             Set sh = Sheets(x & "~" & y & "²Õ")
  8.             If sh Is Nothing Then
  9.                 Set sh = Worksheets.Add(After:=Sheets(Sheets.Count))
  10.                 sh.Name = x & "~" & y & "²Õ"
  11.             End If
  12.             .Range("a" & I & ":D" & I + 11).Copy Sheets(sh.Name).Range("A1")
  13.        [color=Red] .PasteSpecial xlPasteColumnWidths, False, False
  14.         .PasteSpecial xlPasteValues, , False, False
  15.         .PasteSpecial xlPasteFormats, , False, False[/color]
  16.             x = x + 3: y = y + 3
  17.             Set sh = Nothing
  18.         Next
  19.     End With
  20. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# lpk187

·PÁ¤j¤j, ­ì¨Ó¨S¦³xlpasteRowHeight ³oªF¦è, ©Ò¥H¥u¤í¨ì°ª, ´N°®¯Ü©w¤U¦C°ª´N¦¨¥\¤F.
  1. Sub ex()
  2.     On Error Resume Next
  3.     With Sheets("Á`ªí")
  4.     x = 1: y = 3
  5.         ro = .Cells(Rows.Count, 1).End(xlUp).Row
  6.         For I = 1 To ro Step 12
  7.             Set sh = Sheets(x & "~" & y & "²Õ")
  8.             If sh Is Nothing Then
  9.                 Set sh = Worksheets.Add(After:=Sheets(Sheets.Count))
  10.                 sh.Name = x & "~" & y & "²Õ"
  11.             End If
  12.             .Range("a" & I & ":D" & I + 11).Copy
  13.             Sheets(sh.Name).Range("A1:D12").PasteSpecial xlPasteColumnWidths
  14.             Sheets(sh.Name).Range("A1:D12").PasteSpecial xlPasteValues
  15.             Sheets(sh.Name).Range("A1:D12").PasteSpecial xlPasteFormats
  16.             Sheets(sh.Name).Rows(1).RowHeight = 30
  17.              Sheets(sh.Name).Rows(5).RowHeight = 30
  18.               Sheets(sh.Name).Rows(9).RowHeight = 30
  19.             
  20.             x = x + 3: y = y + 3
  21.             Set sh = Nothing
  22.         Next
  23.     End With
  24. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD