crewaustin66
Board Regular
- Joined
- Jun 11, 2014
- Messages
- 82
Does anyone know why I get a 1004 Paste method of Worksheet class failed when I try to cut&paste in VBA with Application.Calculation set to manual? Being able to do this would optimize my macro significantly.
Thanks,
Crew
Thanks,
Crew
Code:
Application.Calculation = xlCalculationManual
If ref2Row > 0 Then
If ref2Row = ref1Row Then
Range("B" & curRow + 1).Select
Else
Range("B" & curRow).Select
End If
ActiveSheet.Paste
Else
If ref1Row > 0 Then
Range("B" & curRow).Select
DoEvents
'ActiveSheet.Paste
ActiveSheet.Paste
End If
End If