Hello Andrew,
Thanks for replying
I gave the wrong code to begin with. I should have put
Sub Copytodaylib()
Sheets("DISTRACTIONS").Select
Dim lr As Long
Dim rcell As Range
lr = Cells(Rows.Count, 20).End(xlUp).Row
For Each rcell In Range("T2:T" & lr)
If rcell = Date Then
Range(rcell, rcell.Offset(, 48)).Copy
With Sheets("Paste").Range("A" & Rows.Count).End(xlUp).Offset(1)
.PasteSpecial Paste:=xlPasteColumnWidths
.PasteSpecial Paste:=xlPasteValues
End With
End If
Next rcell
End Sub
However I put
Range(rcell.EntireRow.Cells(22), rcell.EntireRow.Cells(68)).Copy
from the code you gave me to replace
Range(rcell, rcell.Offset(, 48)).Copy
on my code and it worked so thanks very much.
Bookmarks