Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a comobox with serveral items in it. When you select a certain
item in the Combobox it will go to that item in the sheet and highlight the range of cells for that item. What I would like to do is have the all other on the page hide, and just show the selected item. How would i go about doing that? Thanks Rob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rob
maybe you could work around this: Sub test() Dim RangeToHide As Range Cells.EntireRow.Hidden = False Select Case ActiveCell.Row Case Is = 1: Set RangeToHide = Range("A2:A65536").EntireRow Case Is = 65536: Set RangeToHide = Range("A1:A65535").EntireRow Case Else: Set RangeToHide = Union( _ Range("A1:A" & ActiveCell.Row - 1), _ Range("A" & ActiveCell.Row + 1 & ":A65536")).EntireRow End Select RangeToHide.EntireRow.Hidden = True End Sub Regards Trevor wrote in message oups.com... I have a comobox with serveral items in it. When you select a certain item in the Combobox it will go to that item in the sheet and highlight the range of cells for that item. What I would like to do is have the all other on the page hide, and just show the selected item. How would i go about doing that? Thanks Rob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional formatting / Hide-when-Function in a range of 3 cells | Excel Discussion (Misc queries) | |||
Hide row if all cells in another range are blank | Excel Discussion (Misc queries) | |||
Macro to hide blank cells in a range | Excel Discussion (Misc queries) | |||
Hide columns & rows that contain "0" or blank in a range of cells | Excel Worksheet Functions | |||
Hide individual/range cells and temporarily increase scale for printing | Excel Programming |