Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RobRoy
 
Posts: n/a
Default How do I automatically hide rows

I wish to be able to automatically hide a row when data is entered into a
cell in that row.
Any ideas?

Roy
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

right click sheet tabview codecopy/paste thisSAVE
Now when you enter anything in any cell in rows (below row 4), the row hides

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row 4 Then Rows(Target.Row).Hidden = True
End Sub


--
Don Guillett
SalesAid Software

"RobRoy" wrote in message
...
I wish to be able to automatically hide a row when data is entered into a
cell in that row.
Any ideas?

Roy



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Roy

This would require worksheet event code.

Several options to consider......

Any cell in any row?
A specific cell in any row?
Any cell in a specific row?
A specific cell in a specific row?

Row(s) to remain hidden until you manually unhide?


Gord Dibben Excel MVP

On Mon, 31 Jan 2005 08:39:04 -0800, RobRoy
wrote:

I wish to be able to automatically hide a row when data is entered into a
cell in that row.
Any ideas?

Roy


  #4   Report Post  
RobRoy
 
Posts: n/a
Default

Gord,

It would be a specific cell in any row.

Roy

"Gord Dibben" wrote:

Roy

This would require worksheet event code.

Several options to consider......

Any cell in any row?
A specific cell in any row?
Any cell in a specific row?
A specific cell in a specific row?

Row(s) to remain hidden until you manually unhide?


Gord Dibben Excel MVP

On Mon, 31 Jan 2005 08:39:04 -0800, RobRoy
wrote:

I wish to be able to automatically hide a row when data is entered into a
cell in that row.
Any ideas?

Roy



  #5   Report Post  
RobRoy
 
Posts: n/a
Default

Thanks Don.

How would I make the row hidden by entering data in a specific cell.

Roy

"Don Guillett" wrote:

right click sheet tabview codecopy/paste thisSAVE
Now when you enter anything in any cell in rows (below row 4), the row hides

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row 4 Then Rows(Target.Row).Hidden = True
End Sub


--
Don Guillett
SalesAid Software

"RobRoy" wrote in message
...
I wish to be able to automatically hide a row when data is entered into a
cell in that row.
Any ideas?

Roy






  #8   Report Post  
Jay
 
Posts: n/a
Default

Yes, for instance if I enter data into A2 then row 2 would br hidden
but not if I enter data into B2 etc.


I've used AutoFilter for this.

Select column A and use
Data Filter AutoFilter
This adds a pull-down arrow at A1 and lets you show rows with blanks in
column A (for example). After making a change in column A, click the pull-
down arrow again.

By the way, is there something as easy as this for columns rather than
rows? I saw a posting that suggested a macro, but I'd prefer something like
AutoFilter.
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
how to hide rows in a protected sheet Prakash Excel Worksheet Functions 7 January 18th 05 02:42 PM
Why can't I show or hide rows in an outline on a protected sheet? rwlass Excel Discussion (Misc queries) 1 December 9th 04 04:38 PM
Checkbox to hide and unhide rows Please. Steved Excel Worksheet Functions 2 December 6th 04 11:30 PM
AUTO HIDE ROWS Alan Excel Worksheet Functions 1 November 27th 04 09:13 AM
Excel - if cells = 0, how to conditionally hide rows in chart fineimage Excel Worksheet Functions 1 November 11th 04 09:45 PM


All times are GMT +1. The time now is 11:21 AM.

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

About Us

"It's about Microsoft Excel"