ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Discarding all hidden cells? (https://www.excelbanter.com/excel-programming/374648-discarding-all-hidden-cells.html)

jsb88

Discarding all hidden cells?
 
Doesnt anyone know how to do this automagically?

Many thanks
Jos .


jsb88

Discarding all hidden cells?
 
got it.. had a better search ;-) This one works perfectly... no fuss!

Sub test()

Dim r As Range


For Each r In Intersect(ActiveSheet.UsedRange, Columns(1))
If r.EntireRow.Hidden = True Then
r.EntireRow.Delete
End If
Next


End Sub


WhytheQ

Discarding all hidden cells?
 
.....can we have a bit more info please!

the answer may well include:
Selection.SpecialCells(xlCellTypeBlanks).Select

Rgds
J



jsb88 wrote:

Doesnt anyone know how to do this automagically?

Many thanks
Jos .




All times are GMT +1. The time now is 03:07 AM.

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