- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 1# julianwic
¤£ª¾¹D¹ï¤£¹ï¡I- Sub ex()
- Dim sh As Worksheet
- Dim Rng As Range, Rn As Range
- On Error Resume Next
- Set sh = Sheets("³ø»ù¼i¾ú")
- If sh Is Nothing Then '¦pªG¨S"³ø»ù¼i¾ú"¤u§@ªí«h·s«Ø¤@Ó
- Set sh = Worksheets.Add
- sh.Name = "³ø»ù¼i¾ú"
- End If
- With sh
-
- Sheets("GFF-ITO").Range("O3:P5").Copy .Range("A" & Cells(Rows.Count, 1).End(xlUp).Row + 2)
- Set Rng = .Range("A" & .Cells(Rows.Count, 1).End(xlUp).Row + 2)
- With Rng
- Sheets("GFF-ITO").Range("b9:d9").Copy Rng
- .HorizontalAlignment = xlCenter
- .MergeCells = False
- Sheets("GFF-ITO").Range("G9,J9,K9,L9").Copy .Offset(, 1)
- Sheets("GFF-ITO").Range("V9").Copy .Offset(, 5)
- Sheets("GFF-ITO").Range("O9,P9").Copy .Offset(, 6)
- Sheets("GFF-ITO").Range("P9").Copy .Offset(, 8)
- .Offset(, 8) = "»ù®t"
- End With
- For Each Rn In Sheets("GFF-ITO").Range("D10:D60")
- aa = Rn
- If Rn = "###" Then Exit Sub
- If Sheets("GFF-ITO").Cells(Rn.Row, "O") <> Sheets("GFF-ITO").Cells(Rn.Row, "P") Then
- sro = .Cells(Rows.Count, 1).End(xlUp).Row + 1
- .Cells(sro, "A") = Rn.Value
- .Cells(sro, "b") = Sheets("GFF-ITO").Cells(Rn.Row, "G")
- .Cells(sro, "c") = Sheets("GFF-ITO").Cells(Rn.Row, "j")
- .Cells(sro, "d") = Sheets("GFF-ITO").Cells(Rn.Row, "k")
- .Cells(sro, "e") = Sheets("GFF-ITO").Cells(Rn.Row, "l")
- .Cells(sro, "f") = Sheets("GFF-ITO").Cells(Rn.Row, "v")
- .Cells(sro, "g") = Sheets("GFF-ITO").Cells(Rn.Row, "o")
- .Cells(sro, "h") = Sheets("GFF-ITO").Cells(Rn.Row, "p")
- .Cells(sro, "i") = .Cells(sro, "h") - .Cells(sro, "g")
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X |
|