Dear ¥ý¶i,
§Ú¦³¤@ªí³æ©ó¨C¤@¦¸¶ñ¼g®É¡A·Qn±Nªí³æ¤º®e½Æ»s¨ì"¸ê®Æ®w"¤¤
¼g¤FVBA»yªk¡A¦ý¬O¥¢±Ñªº¡AÁٽЦU¦ìÀ°¦£¬Ý¤@¤U»yªk±Ð¾É§Ú
·PÁÂ!
test.rar (22.11 KB)
¶À¦â©³ªº³¡¥÷¬OnCOPY¨ì"¸ê®Æ®wªº¡A§Ú§Æ±æ¨C°µ¤@¦¸ªí³æ¡A´N¥i¥HCOPY¨ì¸ê®Æ®w(¸ê®Æ®w¬O«ùÄò·s¼Wªº)
VBA»yªk
Private Sub CommandButton1_Click()
'«ü©w¤u§@ªí/·s¼W¤@µ§
If Sheets("¸ê®Æ®w").Range("A2") = "" Then
R = 2
Else
R = Sheets("¸ê®Æ®w").Range("A1").End(xlDown).Row + 1
End If
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C5")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D5")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E5")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G5")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H5")
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C6")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D6")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E6")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G6")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H6")
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C7")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D7")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E7")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G7")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H7")
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C8")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D8")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E8")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G8")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H8")
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C9")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D9")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E9")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G9")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H9")
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C10")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D10")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E10")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G10")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H10")
Sheets("¸ê®Æ®w").Cells(R, "A") = Sheets("°e׳æ").Range("C3")
Sheets("¸ê®Æ®w").Cells(R, "B") = Sheets("°e׳æ").Range("E3")
Sheets("¸ê®Æ®w").Cells(R, "C") = Sheets("°e׳æ").Range("C11")
Sheets("¸ê®Æ®w").Cells(R, "D") = Sheets("°e׳æ").Range("D11")
Sheets("¸ê®Æ®w").Cells(R, "E") = Sheets("°e׳æ").Range("E11")
Sheets("¸ê®Æ®w").Cells(R, "F") = Sheets("°e׳æ").Range("G11")
Sheets("¸ê®Æ®w").Cells(R, "G") = Sheets("°e׳æ").Range("H11")
MsgBox "·s¼W¸ê®Æ¦¨¥\!", 0 + 64
End Sub |