所以这次我的问题是尝试更新。发生的事情是当我到达 Ht 表时。当我复制 HT 信息时,它会覆盖我刚刚放置的 VT 信息。那么有没有办法解决这个问题?
Private Sub CommandButton2_Click()
Dim queen As Range
Dim thought As Range
Dim one As Range
Dim waiting As Range
Dim prob As Range
Dim sign As Range
Set queen = Sheets("VT").Range("C2").End(xlDown)
Set thought = Sheets("VT").Range("C2").End(xlDown).Offset(0, -1)
Set one = Sheets("PalmFamily").Range("B1").End(xlDown)
Set waiting = one.End(xlToRight).Offset(1, 1)
Set prob = Sheets("HT").Range("C2").End(xlDown)
Set sign = Sheets("HT").Range("C2").End(xlDown).Offset(0, -1)
Sheets("VT").Activate
Range("C2", queen).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("PalmFamily").Activate
one.Offset(1, 0).Select
ActiveSheet.Paste
Sheets("VT").Activate
Range("A2", thought).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("PalmFamily").Activate
waiting .Select
ActiveSheet.Paste
Application.ScreenUpdating = True
Sheets("HT").Activate
Range("C2", prob).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("PalmFamily").Activate
one.Offset(1, 0).Select
ActiveSheet.Paste
Sheets("HT").Activate
Range("A2", sign).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("PalmFamily").Activate
waiting.Select
ActiveSheet.Paste
End Sub