Only show the row for today’s date and hide all other rows

oneyearsixmonths

New Member
Joined
Nov 16, 2015
Messages
8
Hi

I would like to make my sheet only show the row for today’s date and hide all other rows?

e.g

01.01.2016
02.01.2016
03.01.2016
04.01.2016

And if the date today is 02.01.2016, it will only load all the data on that row?

This would also be for multiple people so there would be 5x todays dates on one sheet.

Thanks
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try this

Code:
Sub HideNotToday()

Dim lastRow As Long


lastRow = Range("A" & Rows.Count).End(xlUp).Row


For Each c In Range("A1:A" & lastRow)


    If c.Value <> Format(Now(), "mm.dd.yyyy") Then Rows(c.Row).EntireRow.Hidden = True
    
Next


End Sub
 
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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