Hi All
Can someone please give me a bit of code so that when I open a sheet (which takes data from another sheet) it hides rows which contain a zero in a certain cell?
Thanks in advance
ExcelBob
Hi All
Can someone please give me a bit of code so that when I open a sheet (which takes data from another sheet) it hides rows which contain a zero in a certain cell?
Thanks in advance
ExcelBob
It depends. If all the cells are in the same column, just use an auto filter that filters out zeros. If the zeros can be anyware, you will need a macro. But then again I doubt they can be anyware. Can you give some more detail about where the zeros can appear.
Matt
Hi,
To be adapted to your needs ...
HTH![]()
Please Login or Register to view this content.
Cheers
Carim
![]()
Last edited by Simon Lloyd; 04-23-2008 at 02:09 PM.
Thanks for help. Still can't get it to work so will explain some more.
Basically I have data in cells A15 to F37
Where there is a "0" in cells F15: F37 I want the entire row to hide. I would like this to be automated when the workbook is opened...
Thanks again.... :D
of course there is code for that but there is also autofilter, select the range you want to filter and goto data autofilter..
but here's some code to hide rows, it searches rangeK1:K25 and hides whatever row is equal to zero
![]()
Please Login or Register to view this content.
Hi,
Insert code in event macro
![]()
Please Login or Register to view this content.
HTH
Carim
![]()
Last edited by Simon Lloyd; 04-23-2008 at 02:10 PM.
Oops
make sure to change starting point to
Carim![]()
Please Login or Register to view this content.
![]()
Last edited by Simon Lloyd; 04-23-2008 at 02:10 PM.
hi carim
this code is helpful to me
but when i run it it does not stop
any ideas please?
steve
Guess,
I am typing too quickly ...
.Value has nothing to do in this code ...
HTH![]()
Please Login or Register to view this content.
Carim
![]()
Last edited by Simon Lloyd; 04-23-2008 at 02:10 PM.
hi carim
still a problem with code if the last row has 0 in it the last row does not see it
any ideas please
steve
Thanks for the help. I've changed the code a little for my specific needs and thought it may be of use for someone else.
Thanks again Dave!![]()
Please Login or Register to view this content.
Bunches
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks