I have two worksheets in same workbook to which I'm copying one to another and pasting special values. Column T is mixing currency and number formats. New to VBA, so any help you could provide would be appreciated.
Code:
Private Sub CommandButton3_Click()
Dim lLR As Long
Application.ScreenUpdating = False
With Sheets("CAR Open Contract")
lLR = .Range("A1:T" & .Rows.Count).End(xlUp).Row
.UsedRange.Copy
End With
With Sheets("PriorDay").Range("A1")
.PasteSpecial _
Paste:=xlPasteValuesAndNumberFormats, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
End With
Sheets("CAR Open Contract").Range("A1:T" & lLR).Copy
With Sheets("PriorDay").Range("A1")
.PasteSpecial _
Paste:=xlPasteFormats, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
End With
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub