Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I hide a row in excel if a certain other cell is populated

I would like to have certain cells in my excel workbook to be used as on/off
switches that will hide other rows if designated. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How do I hide a row in excel if a certain other cell is populated

Hi Teresa,


With an event macro to be inserted in a sheet module ...

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = 0 Then
'adjust to your need
Range("A1").Offset(6, 0).EntireRow.Hidden = True 'adjust to
your need
Else
Range("A1").Offset(6, 0).EntireRow.Hidden = False
End If
End Sub

HTH
Cheers
Carim

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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Can I hide rows in Excel 2002 using a formula in a cell? Marc Excel Discussion (Misc queries) 4 January 31st 06 11:36 PM
In Excel is it possible to hide a row condtional upon a cell val.. Louise Excel Discussion (Misc queries) 2 July 22nd 05 03:32 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:59 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"