#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default hiding rows

Gina,

What do you mean by 'row K.' K is a column.

Mike

"Gina" wrote:

Hi,

I want to hide all the rows containing data, below row K, when I click on a
checkbox. Does anyone know how to do this?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default hiding rows

Mike,

Yeah, sorry you're right. What I want to do is hide rows, starting at row
24 going down the sheet, that contain data. The number of rows containing
data is unknown so I would like to use a macro that somehow selects only the
rows that aren't blank so that I can hide them.



"crazybass2" wrote:

Gina,

What do you mean by 'row K.' K is a column.

Mike

"Gina" wrote:

Hi,

I want to hide all the rows containing data, below row K, when I click on a
checkbox. Does anyone know how to do this?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default hiding rows

Gina,

The following code will hide all rows with data starting with row 24. NOTE
- This code will hide any row (starting with row 24) with data in it,
regardless of what column the data is in.

Sub HideData()
For Each rw In Range("24:65536").Rows
If Application.WorksheetFunction.CountBlank(rw) < 256 Then rw.Hidden = True
Next
End Sub

Mike


"Gina" wrote:

Mike,

Yeah, sorry you're right. What I want to do is hide rows, starting at row
24 going down the sheet, that contain data. The number of rows containing
data is unknown so I would like to use a macro that somehow selects only the
rows that aren't blank so that I can hide them.



"crazybass2" wrote:

Gina,

What do you mean by 'row K.' K is a column.

Mike

"Gina" wrote:

Hi,

I want to hide all the rows containing data, below row K, when I click on a
checkbox. Does anyone know how to do this?

Thanks

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 and buttons/comboxes, over the rows Ctech[_116_] Excel Programming 1 March 21st 06 12:38 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM


All times are GMT +1. The time now is 03:13 PM.

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

About Us

"It's about Microsoft Excel"