ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro to hide blank cells in a range (https://www.excelbanter.com/excel-discussion-misc-queries/68893-macro-hide-blank-cells-range.html)

Dave

Macro to hide blank cells in a range
 
I have an input sheet that has multiple cells for data input. Not all cells
are used on a monthly basis. I go through and hide the rows with blank input
cells. Each month, the cells are not blank, so I can not write a macro to
hide row 1-6.

Is there a macro that will evaluate the cells in the range and hide all rows
that do not have data in the specified cells?

Example:

If my range is A1:F111 and column D has the input cells, is there a macro
that would hide rows 15-20, 28-29, and 43 because the corresponding cells in
column D have no data?

Thanks
Dave

Nick Hodge

Macro to hide blank cells in a range
 
Dave

Record a macro running the autofilter on column D with the criteria as
blanks. It maybe you only wanted that feature highlighting and you won't
need a macro

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk


"Dave" wrote in message
...
I have an input sheet that has multiple cells for data input. Not all
cells
are used on a monthly basis. I go through and hide the rows with blank
input
cells. Each month, the cells are not blank, so I can not write a macro to
hide row 1-6.

Is there a macro that will evaluate the cells in the range and hide all
rows
that do not have data in the specified cells?

Example:

If my range is A1:F111 and column D has the input cells, is there a macro
that would hide rows 15-20, 28-29, and 43 because the corresponding cells
in
column D have no data?

Thanks
Dave





All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com