![]() |
|
#1
|
|||
|
|||
![]()
Ok I have reverted to the first code.
Because of the words in the middle column the code is not working (see word document to see the words I speak of). I think the code sees the words as non zeros so wont hide those. Can the code be told to ignore the words? Code currently using: Sub Hide0() Dim r As Range, x, c As Range Application.ScreenUpdating = False Application.Calculation = xlCalculationManual Set r = Range("A1:I250") Application.ScreenUpdating = False ActiveSheet.Rows.Hidden = False r.EntireRow.Hidden = True For Each c In r If c <> 0 Then c.EntireRow.Hidden = False End If Next c Application.ScreenUpdating = True Application.Calculation = xlCalculationAutomatic End Sub |
![]() |
Tags |
hide, rows and columns, zero values |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Code to Hide columns based on selection on prior sheet | Silver1379 | Excel Programming | 0 | 04-15-2015 08:40 AM |
![]() |
AUHAMM | Excel | 3 | 10-27-2014 09:11 PM |
![]() |
pachmarhi | Excel | 3 | 07-18-2014 09:57 PM |
![]() |
ubns | Excel Programming | 5 | 05-07-2012 05:44 AM |
Conditional Formatting to Hide Rows or Columns? | sczegus | Excel | 0 | 09-26-2006 04:17 PM |