Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can Excel hide a row automatically based on value in a cell?

I am using Excel 2000. I would like to create a worksheet that would
automatically hide certain rows depending on a value in a cell in a different
row (or in the row, if that would work better). The worksheet would have,
say, 3 groups of 26 rows. I will be sharing the worksheet with others and I
want to make it as user-friendly as possible. Some users may only use 6 or 7
rows in one group, and 10 rows in the second group, and perhaps no rows in
the third group. Each user will have a different need. I would like to be
able to enter a value into three cells and have the extra rows not appear in
each group. I do not want the user to have to go to the toolbar to hide or
filter out rows that are not used if that can be avoided. Is there any way
to do this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Can Excel hide a row automatically based on value in a cell?

Hi,
This shows the principle of what needs to be done. You will need to
decide how you assign which rows are to be hidden - is this a table per user
per group?

Sub HideRows()

Dim HiddenRows(3) As String
Dim i As Integer

HiddenRows(1) = "4:4,6:6,7:7,11:11,12:12"
HiddenRows(2) = "4:4,6:6,7:7"
HiddenRows(3) = "4:4,6:6,11:11,12:12"

For i = 1 To 3
Range(HiddenRows(i)).Select
Selection.EntireRow.Hidden = True
Next i

End Sub

"RJQMAN" wrote:

I am using Excel 2000. I would like to create a worksheet that would
automatically hide certain rows depending on a value in a cell in a different
row (or in the row, if that would work better). The worksheet would have,
say, 3 groups of 26 rows. I will be sharing the worksheet with others and I
want to make it as user-friendly as possible. Some users may only use 6 or 7
rows in one group, and 10 rows in the second group, and perhaps no rows in
the third group. Each user will have a different need. I would like to be
able to enter a value into three cells and have the extra rows not appear in
each group. I do not want the user to have to go to the toolbar to hide or
filter out rows that are not used if that can be avoided. Is there any way
to do this?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 233
Default Can Excel hide a row automatically based on value in a cell?

Use XL Advanced filter,

DM Unseen

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
Automatically hide column or row if a cell value meets criteria [email protected] Excel Worksheet Functions 3 June 10th 08 10:18 PM
automatically hide row if cell contains asterisk djarcadian Excel Discussion (Misc queries) 9 March 22nd 06 06:29 PM
How do I automatically fill a cell based on another cell in Excel SouthCarolina Excel Discussion (Misc queries) 3 January 13th 06 12:52 AM
How do I automatically hide columns in a worksheet based on a cell value? dkhedkar Excel Worksheet Functions 1 March 5th 05 12:20 AM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM


All times are GMT +1. The time now is 06:38 PM.

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"