Hide certain rows

  • Thread starter Thread starter master811
  • Start date Start date
M

master811

Is there a way to hide certain rows depending on the data that the
contain?

I am trying to only display data that is between certain dates, (i.e
it only displays data from now until 6 months later and so will chang
everyday)
 
Hi

You can use Data>AutoFilter

Choose Custom in the dropdown and use
Greater then and Less then
 
Hi!

One way would be to use Data>Filter>Autofilter and set up a custom vie
of the worksheet (values greater than xx and less than yy).

Another would be to run a small macro along the lines of

Sub HideRows()
Application.ScreenUpdating = False
With ActiveSheet
For i = 2 To 600
If .Range("A" & i) < .Range("A1") Then .Rows(i).Hidden = True
Next i
End With
End Sub

This happens to assume you have dates in A2:A600 and a future date i
A1 (I used Today() + 180, which will update itself)

Set up a button to activate it, perhaps.

If either seems appropriate but, as yet, inaccessible, post back.


Al
 
Thanks for that, its just the auto filter doesn't update itself, (i.e
if today's date changes, you need to redo the filter, is there a way s
that it only data from now until 6 months is displayed automaticall
with no additional user input
 
i would suggest that you use advanced filter, run by a macro that coul
be housed in worksheet's activate event. the details advanced filte
could be found on www.contextures.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top