Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using the following macro to hide/show rows, but I get a "run-time error
'1004' Unable to set the Hidden property of the Range Class" if the row contains a combo box. The combo boxes are inserting information into adjoining cells on the same row. What could be causing the error? Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$A$2" Then Range("2:" & Rows.Count).EntireRow.Hidden = False Range(CStr(3 + 2 * Range("A2").Value) & ":" & _ Rows.Count).EntireRow.Hidden = True End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro code to hide rows and not calculate hidden rows | Excel Discussion (Misc queries) | |||
Macro to hide rows? | Excel Programming | |||
Macro to hide rows | Excel Programming | |||
hide rows with macro | Excel Programming | |||
hide rows with macro | Excel Discussion (Misc queries) |