Search Tomorrow's date macro

coastalman4545

New Member
Joined
Jan 31, 2015
Messages
5
Hello and thanks for reading.

I have a dashboard that i made and it has a daily tasks button that goes into my manual calendar that I made and finds "today's" date, goes two rows down and copies the space and pastes it onto my interface page. I will post the macro for it. All I would like to do is learn how to get it to find tomorrow's date and do the exact same thing. Everything else in the code works great, I just need it to find tomorrow's date instead of today. Purpose is I want to know what's tomorrow's tasks. Thanks.

Sub Find_Todays_date() (I have looked and I can't find how to make this look 1 day ahead of today)
Dim FindString As Date
Dim Rng As Range
FindString = CLng(Date)
With Sheets("calendar").Range("A1:G200")
Set Rng = .Find(What:=FindString, _
After:=.Cells(.Cells.Count), _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Application.Goto Rng, True
ActiveCell.Offset(2, 0).Range("A1").Select
Selection.Copy
Sheets("interface").Select
Range("B3").Select
ActiveSheet.Paste
Else
MsgBox "Nothing found"
End If
End With
End Sub
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Dates are integers, so +1 will add a day to todays value
 
Upvote 0
This macro searches through a set of columns and finds today's date. The dates are already set up in a calendar format. The +1 has not worked anywhere in this macro. I could be putting it in the wrong place but below is the different formats I have tried

Sub Find_Todays_date, +1()
Sub find_Todays+1()
Sub find_Tomorrow

All bring back an error or the find_tomorrow just brings back today again not the next day.
 
Upvote 0
Dates are integers, so +1 will add a day to todays value

Mole999,
So I reposted with the problems after you posted. I then kept thinking about the +1, I was getting an error no matter where I posted it. then I looked in the line of code "FindString = CLng(Date)" and I added a plus on to that line "FindString = CLng(Date + 1).

Now it works as intended. Thanks for the reply and the help. take care
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top