DUE DATE REMINDER IN EXCEL TO NEW SHEET?
Solved/Closed
Babu546
Posts
7
Registration date
Tuesday January 20, 2015
Status
Member
Last seen
January 26, 2015
-
Jan 21, 2015 at 08:57 AM
Babu546 - Jan 22, 2015 at 01:37 PM
Babu546 - Jan 22, 2015 at 01:37 PM
Related:
- Excel due date reminder template download
- Excel date format dd.mm.yyyy - Guide
- Number to words in excel - Guide
- Gif in excel - Guide
- Marksheet in excel - Guide
- How to take screenshot in excel - Guide
1 response
That formula was only designed to give in a single result.
Rather that using a formula it is probably best to using a macro to filter the data instead.
In this example I have named the source data "MainSheet" and the sheet to where the data is pasted, "DueDate".
I have used a variable for the dateoffset, in this case the value is 30, it could be changed to some other value if needed. It could even be set to refer to a cell on a sheet that can be changed as and when required to save messing around with the code each time a change is required.
Just something to be aware of, the use of "UsedRange" could be problematic as it does select blank cells to the right and bottom if they have been used at some point.
Rather that using a formula it is probably best to using a macro to filter the data instead.
Sub filterandcopy()
Dim dateoffset As Integer
Dim lastrow As Long
lastrow = Worksheets("MainSheet").Range("A" & Rows.Count).End(xlUp).Row
dateoffset = 30
d = Date + dateoffset
Worksheets("MainSheet").Range("$A$1:$H$" & lastrow).AutoFilter Field:=8, Criteria1:=">=" & d, Operator:=xlAnd
Worksheets("MainSheet").UsedRange.Copy Destination:=Sheets("DueDate").Range("A1")
Selection.AutoFilter
End Sub
In this example I have named the source data "MainSheet" and the sheet to where the data is pasted, "DueDate".
I have used a variable for the dateoffset, in this case the value is 30, it could be changed to some other value if needed. It could even be set to refer to a cell on a sheet that can be changed as and when required to save messing around with the code each time a change is required.
Just something to be aware of, the use of "UsedRange" could be problematic as it does select blank cells to the right and bottom if they have been used at some point.
Jan 22, 2015 at 03:20 AM
But I am a beginner to Macros so I thought I will share my file with you so that I may explain you better
this is my file link
http://speedy.sh/q658J/Due-Date-Reminder.xls
any assistance will greatly appreciated....
Thanks in advance
Jan 22, 2015 at 11:06 AM
I have made a couple of 'enhancments' to help you.
http://speedy.sh/YB26j/babu-Due-Date-Reminder.xls
Jan 22, 2015 at 12:05 PM
Jan 22, 2015 at 01:37 PM
Thanks a lot