Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unhide
Hello,
I am using Excel VBA. Currently I have several rows hidden between various unhidden rows. When I normally use the vba code: range(selection,selection.end(xlup)).select The range includes everything up to the first empty cell above the current cell. However if the first empty cell is hidden it skips over them and goes to the first unhidden empty cell. How can I get the range to stop at the first empty cell no matter if it is hidden or not. Thank You, |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Unhide
Sub lrh()'use cells to find last on ws
MsgBox Columns(1).Find("*", searchdirection:=xlPrevious).Row End Sub -- Don Guillett SalesAid Software "tjh" wrote in message ... Hello, I am using Excel VBA. Currently I have several rows hidden between various unhidden rows. When I normally use the vba code: range(selection,selection.end(xlup)).select The range includes everything up to the first empty cell above the current cell. However if the first empty cell is hidden it skips over them and goes to the first unhidden empty cell. How can I get the range to stop at the first empty cell no matter if it is hidden or not. Thank You, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
row won't unhide | Excel Discussion (Misc queries) | |||
unhide row does not unhide the hidden rows | Excel Worksheet Functions | |||
Unhide column - why doesn't click unhide column work? | Excel Discussion (Misc queries) | |||
how do i unhide a worksheet in excel 2003? unhide tab don't work | Excel Discussion (Misc queries) | |||
How do I unhide a column when format/column/unhide won't work | Excel Worksheet Functions |