Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide Range of Cells

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Hide Range of Cells

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting / Hide-when-Function in a range of 3 cells ran58 Excel Discussion (Misc queries) 2 July 22nd 09 05:24 PM
Hide row if all cells in another range are blank dford Excel Discussion (Misc queries) 2 February 3rd 07 06:21 PM
Macro to hide blank cells in a range Dave Excel Discussion (Misc queries) 1 February 1st 06 11:55 PM
Hide columns & rows that contain "0" or blank in a range of cells lw new guest Excel Worksheet Functions 0 August 18th 05 04:27 PM
Hide individual/range cells and temporarily increase scale for printing chris100[_2_] Excel Programming 3 July 17th 05 08:54 PM


All times are GMT +1. The time now is 02:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"