Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Leona Wright   on Dec 07 In MS Office Category.

  
Question Answered By: Chione Massri   on Dec 07

This works(tested):

Sub hide()
Dim ws
Dim rw
For Each ws In ActiveWorkbook.Sheets
For Each rw In ws.UsedRange.Rows
If rw.Cells(3) = 0 And rw.Cells(5) = 0 _
And rw.Cells(6) = 0 Then rw.Hidden = True
Next rw
Next ws
End Sub

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Using code on multiple worksheets in a workbook Or get search suggestion and latest updates.


Tagged: