Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Counting characters in multiple rows when rows meet specific criteria | Excel Worksheet Functions | |||
Copy rows of data (eliminating blank rows) from fixed layout | Excel Discussion (Misc queries) | |||
Excel 2003 -Rows hidden. Scrolling unhides rows ! How do I stop th | Excel Discussion (Misc queries) | |||
Pivot Tables: How do I show ALL field rows, including empty rows?? | Excel Worksheet Functions | |||
flexible paste rows function that inserts the right number of rows | Excel Discussion (Misc queries) |