Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Hiding Rows between two Finds

How can I hide rows between two labels?

Label 1
detail
detail
Label2
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hiding Rows between two Finds

Range(rng1.offset(1,0),rng2.Offset(-1,0)).EntireRow.Hidden = True

but if you have outlining, you might want to perform the hide manually with
the macro recorder turned on and see if you can modify that.

--
Regards,
Tom Ogilvy

"SharonInGa" wrote in message
...
How can I hide rows between two labels?

Label 1
detail
detail
Label2



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Hiding Rows between two Finds

Tom,
I wasn't clear enough on my requirements. I need to FIND the label "Cash"
on the Sreadsheet and delete the rows between the Beginning "Cash" and ending
"Cash" labels. Both the labels and detail are located in different places
for each report depending on the number of records.

"Tom Ogilvy" wrote:

Range(rng1.offset(1,0),rng2.Offset(-1,0)).EntireRow.Hidden = True

but if you have outlining, you might want to perform the hide manually with
the macro recorder turned on and see if you can modify that.

--
Regards,
Tom Ogilvy

"SharonInGa" wrote in message
...
How can I hide rows between two labels?

Label 1
detail
detail
Label2




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 296
Default Hiding Rows between two Finds

On Wed, 30 Mar 2005 12:41:07 -0800, "SharonInGa"
wrote:

Tom,
I wasn't clear enough on my requirements. I need to FIND the label "Cash"
on the Sreadsheet and delete the rows between the Beginning "Cash" and ending
"Cash" labels. Both the labels and detail are located in different places
for each report depending on the number of records.


Is filtering the whole table to show all rows that are not equal to
"Cash", then deleting these filtered rows, then removing the filter an
option? (Assumes "Cash" labels are in the same column of course)

Rgds





"Tom Ogilvy" wrote:

Range(rng1.offset(1,0),rng2.Offset(-1,0)).EntireRow.Hidden = True

but if you have outlining, you might want to perform the hide manually with
the macro recorder turned on and see if you can modify that.

--
Regards,
Tom Ogilvy

"SharonInGa" wrote in message
...
How can I hide rows between two labels?

Label 1
detail
detail
Label2





__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
Color alternate rows when after hiding selected rows Monk[_2_] Excel Worksheet Functions 6 June 7th 08 01:36 AM
Hiding Specific Rows Based on Values in Other Rows Chris Excel Worksheet Functions 1 November 2nd 06 08:21 PM
Hiding a button when hiding rows fergusor Excel Discussion (Misc queries) 2 August 10th 06 02:31 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Copying Rows when hiding other rows Neutron1871 Excel Worksheet Functions 2 November 3rd 04 11:38 PM


All times are GMT +1. The time now is 09:43 PM.

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"