0
我有這個代碼,但它複製公式,我只有值。 我對VBA不太瞭解。複製並粘貼值
Dim sh4 As Worksheet, sh5 As Worksheet, lr As Long, rng As Range
Set sh4 = Sheets("Transfer_New")
Set sh5 = Sheets("Closed_Loans")
lr = sh4.Cells(Rows.Count, 1).End(xlUp).Row
Set rng = sh4.Range("A2:A" & lr)
Application.Cursor = xlHand
iReply = MsgBox(Prompt:="Are you sure you want to transfer client to CLOSED_LOANS?", _
Buttons:=vbYesNo, Title:="Document Production")
If iReply = vbYes Then
Application.Cursor = xlWait: rng.EntireRow.Copy sh5.Cells(Rows.Count, 1).End(xlUp)(2): Application.Cursor = xlNorthwestArrow
End If
End Sub