Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I was given a macro by Sandy here which is not working exactly the way I
need. I need to be able to seek out first all rows that are Hidden and have them deleted. When a row is deleted, the unhidden rows should move up. Then I need the macro to look for hidden columns and do the same. Issue with this macro: Since this is an mcell reference, it is only deleting cells, I need entire rows, then columns deleted. *** Sub FindHiddenAndLock() Dim mcell, MyRange As Range Set MyRange = Range("A1:A10") For Each mcell In MyRange If mcell.Rows.Hidden = True Then mcell.Rows.Delete End If Next End Sub *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find last row with hidden rows | Excel Discussion (Misc queries) | |||
How can I delete Excel rows that I've hidden without restoring the | Excel Discussion (Misc queries) | |||
how do I delete hidden rows or columns without doing it manually? | Excel Worksheet Functions | |||
How do I delete hidden records/rows? | Excel Discussion (Misc queries) | |||
subtotal copy-paste and delete hidden rows | Excel Discussion (Misc queries) |