#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default rows

I only want say 200 rows to show on my sheet but don't want to hide the rest
of them. How do I limit the number of rows that are on a sheet. Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default rows

Just hide them, FormatRowHide

--
__________________________________
HTH

Bob

"Emma" wrote in message
...
I only want say 200 rows to show on my sheet but don't want to hide the
rest
of them. How do I limit the number of rows that are on a sheet. Thanks!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default rows

On Sep 11, 8:22*am, "Bob Phillips" wrote:
Just hide them, FormatRowHide

--
__________________________________
HTH

Bob

"Emma" wrote in message

...

I only want say 200 rows to show on my sheet but don't want to hide the
rest
of them. *How do I limit the number of rows that are on a sheet. *Thanks!!


If you really really don't want to hide the rows beyond the 200th you
could set the sheet's ScrollArea property to $1:$200 by right clicking
the sheet tab, selecting "View Code" from the pop up menu to get into
the VB Editor, changing the sheet's ScrollArea to $1:$200 in it's
Properties Window (If Properties Window is not visible then press F4),
exiting the VB Editor (Alt+F11).

Ken Johnson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default rows

But the ScrollArea won't stick between sessions so you really have to add
event code to make it stick.

Either workbook_open or sheet_activate code.

Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "A1:M200"
End Sub

Or this in the Thisworkbook module to limit scrollarea on all sheets.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
.ScrollArea = "A1:M200"
End With
End Sub


Gord Dibben MS Excel MVP

On Wed, 10 Sep 2008 15:59:58 -0700 (PDT), Ken Johnson
wrote:

On Sep 11, 8:22*am, "Bob Phillips" wrote:
Just hide them, FormatRowHide

--
__________________________________
HTH

Bob

"Emma" wrote in message

...

I only want say 200 rows to show on my sheet but don't want to hide the
rest
of them. *How do I limit the number of rows that are on a sheet. *Thanks!!


If you really really don't want to hide the rows beyond the 200th you
could set the sheet's ScrollArea property to $1:$200 by right clicking
the sheet tab, selecting "View Code" from the pop up menu to get into
the VB Editor, changing the sheet's ScrollArea to $1:$200 in it's
Properties Window (If Properties Window is not visible then press F4),
exiting the VB Editor (Alt+F11).

Ken Johnson


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default rows

On Sep 11, 10:35*am, Gord Dibben <gorddibbATshawDOTca wrote:
But the ScrollArea won't stick between sessions so you really have to add
event code to make it stick.

Either workbook_open or sheet_activate code.

Private Sub WorkBook_Open()
* *Sheets("YourSheet").ScrollArea = "A1:M200"
End Sub

Or this in the Thisworkbook module to limit scrollarea on all sheets.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
* *.ScrollArea = "A1:M200"
End With
End Sub

Gord Dibben *MS Excel MVP

On Wed, 10 Sep 2008 15:59:58 -0700 (PDT), Ken Johnson

wrote:
On Sep 11, 8:22*am, "Bob Phillips" wrote:
Just hide them, FormatRowHide


--
__________________________________
HTH


Bob


"Emma" wrote in message


...


I only want say 200 rows to show on my sheet but don't want to hide the
rest
of them. *How do I limit the number of rows that are on a sheet. *Thanks!!


If you really really don't want to hide the rows beyond the 200th you
could set the sheet's ScrollArea property to $1:$200 by right clicking
the sheet tab, selecting "View Code" from the pop up menu to get into
the VB Editor, changing the sheet's ScrollArea to $1:$200 in it's
Properties Window (If Properties Window is not visible then press F4),
exiting the VB Editor (Alt+F11).


Ken Johnson


Oops! I forgot about that.
Thanks Gord.

Ken Johnson
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
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
Copy rows of data (eliminating blank rows) from fixed layout Sweepea Excel Discussion (Misc queries) 1 March 13th 07 11:05 PM
Excel 2003 -Rows hidden. Scrolling unhides rows ! How do I stop th Excellent1975 Excel Discussion (Misc queries) 0 June 21st 06 08:01 PM
Pivot Tables: How do I show ALL field rows, including empty rows?? [email protected] Excel Worksheet Functions 2 April 8th 05 06:21 PM
flexible paste rows function that inserts the right number of rows marika1981 Excel Discussion (Misc queries) 1 February 18th 05 02:40 AM


All times are GMT +1. The time now is 04:38 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"