Related:
- Copy data sheet 1 to sheet 2
- Tentacle locker 2 - Download - Adult games
- Fnaf 1 download pc - Download - Horror
- Tentacle locker 1 - Download - Adult games
- Google sheet right to left - Guide
- Windows network commands cheat sheet - Guide
1 response
YasserKhalil
Posts
6
Registration date
Saturday February 20, 2016
Status
Member
Last seen
July 31, 2016
1
Jul 28, 2016 at 03:06 PM
Jul 28, 2016 at 03:06 PM
There are not enough details
Assume that there is data in range("A1:D20") and in column D there are dates in which you need to examine the expiry dates and if found to cut the entire row to sheet2
Assume that there is data in range("A1:D20") and in column D there are dates in which you need to examine the expiry dates and if found to cut the entire row to sheet2
Sub Test()
Dim Lr As Long, I As Long
Lr = Sheet1.Cells(Rows.Count, 1).End(xlUp)
Application.ScreenUpdating = False
For I = 1 To Lr
If Sheet1.Cells(I, "D").Value < Date Then
Sheet1.Cells(I, "D").EntireRow.Copy
Sheet2.Range("A" & Sheet2.Cells(Rows.Count, 1).End(xlUp).Row + 1).PasteSpecial xlPasteValues
Sheet1.Cells(I, "D").EntireRow.Delete
End If
Next I
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
Jul 28, 2016 at 07:32 PM
Jul 28, 2016 at 11:17 PM
Jul 29, 2016 at 02:39 AM
i dont want in macro i want to do in exel using formula can u please tell me which formula it correct for this please help me..
DC
Jul 29, 2016 at 04:10 PM
This is what I was talking about! No good deed goes unpunished. Be prepared for scope creep!