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

½Ð²¤Æ¿ý»sªºµ{¦¡½X

½Ð²¤Æ¿ý»sªºµ{¦¡½X

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-23 12:51 ½s¿è

'½Æ»s«ü©wªºDATA!A:I½d³ò¡A¶K¤W6­Ó¤u§@ªíªºAU2
Sheets("DATA").Range("A1850:I1875").Select
        Selection.Copy
        Sheets(Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8")).Select
        .Range("AU2").Select
        ActiveSheet.Paste
ÁÂÁÂ !

¤£¦n·N«ä¡Aº|¤F2¦C
'½Æ»s«ü©wªºDATA!A:I½d³ò¡A¶K¤W6­Ó¤u§@ªíªºAU2
Sub Macro1()
    Range("A1850:I1875").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets(Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8")).Select
    Sheets("·Ç3¶i4").Activate
    Range("AU2").Select
    ActiveSheet.Paste
End Sub

TOP

¦^´_ 2# ziv976688

Sub test()
    For Each xs In Sheets(Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
        Sheets("DATA").Range("A1850:I1875").Copy xs.Range("AU2")
    Next
End Sub
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 2# ziv976688


Sub test()
For Each ws In Sheets(Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
    Set Rng = ws.[AU2]
    Sheets("DATA").Range("A1850:I1875").Copy Rng
Next
End Sub

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-7-23 16:41 ½s¿è

¦^´_ 3# ML089
ÁÂÁ±zªº«ü¾É~·P®¦

¥t¥~§Ú§âµ{¦¡½X¶K¨ìDATA!
½Ð°Ý¡G¤U¦Cªºµ{¦¡½X¥i¥H¦p¦ó¦A²(Àu)¤Æ?
ÁÂÁ±z
TEST_³sÄò½Æ»s.rar (84.14 KB)
    Nrange = "1878" 'InputBox("½Ð¿é¤J¹Bºâªº¨´¤î´Á¼Æ", "¿é¤J´Á¼Æ")
    Num = "25" 'InputBox("½Ð¿é¤J½Æ»sªº´Á¶Z¼Æ½d³ò", "¿é¤J¶Z´Á¼Æ")

'³sÄò½Æ»s
'¦C36
    For Each xS In Sheets(Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
        Sheets("DATA").Range("A" & Nrange - Num - 2, "I" & Nrange - 2).Copy xS.Range("AU2") '½Æ»s«ü©wªºDATA!A:I½d³ò¶K¤WAU2
    Next
   
    For Each xS In Sheets(Array("·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
        Sheets("DATA").Range("A" & Nrange - Num - 3, "I" & Nrange - 3).Copy xS.Range("BD2")
    Next
   
    For Each xS In Sheets(Array("·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
        Sheets("DATA").Range("A" & Nrange - Num - 4, "I" & Nrange - 4).Copy xS.Range("BM2")
    Next

    For Each xS In Sheets(Array("·Ç6¶i7", "·Ç7¶i8"))
        Sheets("DATA").Range("A" & Nrange - Num - 5, "I" & Nrange - 5).Copy xS.Range("BV2")
    Next
        
    For Each xS In Sheets("·Ç7¶i8")
        Sheets("DATA").Range("A" & Nrange - Num - 6, "I" & Nrange - 6).Copy xS.Range("CE2")
    Next

TOP

¦^´_ 4# samwang
ÁÂÁ±zªº«ü¾É~·P®¦
5¼Óªº»Ý¨D~Àµ½Ð½ç±Ð¡C
ÁÂÁ±z

TOP

¥»©«³Ì«á¥Ñ ML089 ©ó 2021-7-23 23:07 ½s¿è

¦^´_ 5# ziv976688

Nrange = "1878" 'InputBox("½Ð¿é¤J¹Bºâªº¨´¤î´Á¼Æ", "¿é¤J´Á¼Æ")
    Num = "25" 'InputBox("½Ð¿é¤J½Æ»sªº´Á¶Z¼Æ½d³ò", "¿é¤J¶Z´Á¼Æ")

'    '³sÄò½Æ»s
'    '¦C36
'    For Each xS In Sheets(Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
'        Sheets("DATA").Range("A" & Nrange - Num - 2, "I" & Nrange - 2).Copy xS.Range("AU2")    '½Æ»s«ü©wªºDATA!A:I½d³ò¶K¤WAU2
'    Next
'
'    For Each xS In Sheets(Array("·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
'        Sheets("DATA").Range("A" & Nrange - Num - 3, "I" & Nrange - 3).Copy xS.Range("BD2")
'    Next
'
'    For Each xS In Sheets(Array("·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8"))
'        Sheets("DATA").Range("A" & Nrange - Num - 4, "I" & Nrange - 4).Copy xS.Range("BM2")
'    Next
'
'    For Each xS In Sheets(Array("·Ç6¶i7", "·Ç7¶i8"))
'        Sheets("DATA").Range("A" & Nrange - Num - 5, "I" & Nrange - 5).Copy xS.Range("BV2")
'    Next
'
'    For Each xS In Sheets("·Ç7¶i8")
'        Sheets("DATA").Range("A" & Nrange - Num - 6, "I" & Nrange - 6).Copy xS.Range("CE2")
'    Next
   
   
    Srr = Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8")
    Prr = Array("AU2", "BD2", "BM2", "BV2", "CE2")
    Nrr = Array(2, 3, 4, 5, 6)
    For i = 0 To 4
       For j = i To 4 'ª`·N ¤w¸g­×§ï¹L
            Sheets("DATA").Range("A" & Nrange - Num - Nrr(i), "I" & Nrange - 6).Copy Sheets(Srr(j)).Range(Prr(i))
            Application.Goto Sheets(Srr(j)).Range(Prr(i))
        Next
    Next
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

Application.Goto Sheets(Srr(j)).Range(Prr(i))
³o¬O´ú¸Õ¥Î¥i¥H§R°£
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

Srr = Array("·Ç3¶i4", "·Ç4¶i5", "·Ç5¶i6", "·Ç6¶i7", "·Ç7¶i8")
    Prr = Array("AU2", "BD2", "BM2", "BV2", "CE2")
    Nrr = Array(2, 3, 4, 5, 6)
    For i = 0 To 4
       For j = i To 4 'ª`·N ¤w¸g­×§ï¹L
            Sheets("DATA").Range("A" & Nrange - Num - Nrr(i), "I" & Nrange - 6).Copy Sheets(Srr(j)).Range(Prr(i))
            Application.Goto Sheets(Srr(j)).Range(Prr(i))
        Next
    Next
{...} ªí¥Ü»Ý­n¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡

TOP

¦^´_ 9# ML089
ª©¥D :±z¦n!
½Æ»s½d³ò¦³»~®t~ TEST_³sÄò½Æ»s(´ú¸Õ).rar (85.57 KB)
ÁÂÁ±z

TOP

        ÀR«ä¦Û¦b : ¡i¦æµ½­n¤Î®É¡j¦æµ½­n¤Î®É¡A¥\¼w­n«ùÄò¡C¦p¿N¶}¤ô¤@¯ë¡A¥¼¿N¶}¤§«e¤d¸U¤£­n°±º¶¤õ­Ô¡A§_«h­«¨Ó´N¤Ó¶O¨Æ¤F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD