LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Hiding Cells Automatically

Hi Bryan
- put this code in a module of your workbook (see
http://www.mvps.org/dmcritchie/excel/getstarted.htm for instructions)
- after this goto 'Tools - Macro - Macros' and start this macro

P.S.: If you use a german Excel version use the menu 'Extras - Makro -
Makros'
--
Regards
Frank Kabel
Frankfurt, Germany

Hartsell wrote:
Frank,

Here's the code,

Private Sub Hide_Row()
Dim r As Long
Application.ScreenUpdating = False
With Worksheets("Sheet2")
For r = .UsedRange.Rows(.UsedRange.Rows.Count).Row To 5 Step
-1 If Application.CountA(Range(Cells(r, "C"), Cells(r,
"O"))) = 0 Then .Rows(r).Hidden = True
End If
Next
End With
Application.ScreenUpdating = True
End Sub

Is there some sort of step to activate it?

Thanks
Bryan
Grafenwoehr, Germany


 
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
Hiding/Unhiding Rows Automatically Brad Resnick Excel Worksheet Functions 1 February 23rd 10 11:29 PM
AUtomatically hiding a row when a certain cell is blank kirbster1973 Excel Discussion (Misc queries) 6 January 21st 08 04:47 PM
Automatically Hiding Blank Rows [email protected] Excel Discussion (Misc queries) 5 December 31st 05 04:13 PM
hiding columns automatically dave glynn Excel Discussion (Misc queries) 2 February 1st 05 06:36 PM
hiding columns automatically dave glynn Excel Discussion (Misc queries) 0 February 1st 05 06:15 PM


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