Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default hide multiple rows

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default hide multiple rows

Try this:
Worksheets(1).Range("41:44, 47:51").EntireRow.Hidden = False


"Amit" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default hide multiple rows

Amit,

try it this way:

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



--
Hope that helps.

Vergel Adriano


"Amit" wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default hide multiple rows

Dear Cory & Vergel

Thanks to both of you. It worked both ways.




"Amit" wrote:

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.

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
How do I hide multiple rows under one row IN EXCEL? STEVEN Excel Worksheet Functions 3 May 7th 10 04:15 AM
Specify which rows to NOT hide, and have excel hide the rest Mo2 Excel Programming 0 April 25th 07 03:44 AM
Hide and unhide rows for multiple areas leonidas[_6_] Excel Programming 6 June 15th 06 07:38 PM
How to Specify Multiple Rows to Hide Paige Excel Programming 2 February 17th 06 07:18 PM
Macro to hide multiple rows Minh Excel Programming 2 August 31st 04 08:35 AM


All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"