hide multiple rows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to unhide a few rows based on some condition. Out of these rows,
two rows are hidden using some other condition.

I tried the following:
Worksheets(1).Rows("41:44", "47:51").Hidden = False
(Rows 45 & 46 are to remain hidden)

But this is not working. Please help.
 
Amit,

try it this way:

With Worksheets(1)
Union(.Range("41:44"), .Range("47:51")).Rows.Hidden = False
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top