Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I currently have the code below for a button that will unhide last 175 rows
in my worksheet. I now would like to have it hide the rows that are blank in in the range (C7:BL206) looking from the bottom up. For example, if there were any values in the cells (from Columns C to K only) in row 190, the macro would only hide rows 191 thru 206. Any suggestions?? Private Sub CommandButton2_Click() ActiveSheet.Unprotect Password:="" Range("A32:A206").EntireRow.Hidden = False ActiveSheet.Protect Password:="" ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _ , AllowFormattingColumns:=True, _ AllowFormattingRows:=True, AllowFiltering:=True, _ AllowUsingPivotTables:=True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hiding blank rows | Excel Programming | |||
Automatically Hiding Blank Rows | Excel Discussion (Misc queries) | |||
Hiding Rows if the linked rows are blank | Excel Discussion (Misc queries) | |||
Hiding blank rows | Excel Discussion (Misc queries) | |||
Hiding Rows with Zero or Blank Values | Excel Programming |