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 Auto-Hide Rows Macro

Is it possible to auto hide/unhide rows based on a vlaue that may/may not be
present?

For example, instead of writing many different macros, I would like a macro
to check say column A, and hide every row that has "n/a" as a value in column
A. The values in column A would be based on If Then statements, so they
would change to/from "n/a" depending upon other variables. I would like for
the macroo to continue to monitor and auto hide/unhide actively depending
upon that "n/a" value being present in column A

Any suggestions?

Thank you in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Auto-Hide Rows Macro

select yr data and use this macro

Sub hideem()
For Each cell in Selection
If cell.Value = "n/a" Then
cell.Rows.Entirerow.Hidden = True
End if
Next cell
End Sub
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
Auto hide corresponding rows in 2 worksheets? NANGO Excel Discussion (Misc queries) 0 April 12th 07 10:28 PM
auto hide unhide in grey rows above how did I manage this rayrook Excel Worksheet Functions 1 March 12th 07 03:38 PM
Want to auto hide rows in excel when no data in a certain column. Tim Excel Discussion (Misc queries) 3 June 30th 05 12:52 AM
Auto Hide Columns & Rows appeng Excel Discussion (Misc queries) 2 March 25th 05 04:43 PM
AUTO HIDE ROWS Alan Excel Worksheet Functions 1 November 27th 04 09:13 AM


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