Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
xxx xxx is offline
external usenet poster
 
Posts: 2
Default Restrict Number of Columns

How do i restrict my worksheet to 20 rows & 20 columns.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Restrict Number of Columns

On Sat, 13 Feb 2010 01:20:01 -0800, xxx
wrote:

How do i restrict my worksheet to 20 rows & 20 columns.


Hide the rows and columns that you don't want to see.

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Restrict Number of Columns

Hide those you don't want to look at.

Or set the scrollarea via VBA

Since the scrollarea method does not stick between sessions you will have to
reset it each time you open the workbook.

You may wish to place the code into a WorkBook_Open Sub in ThisWorkbook
module and specify which worksheet if only one sheet required.

Adjust the sheetname and range to suit.

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

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

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


Gord Dibben MS Excel MVP

On Sat, 13 Feb 2010 01:20:01 -0800, xxx
wrote:

How do i restrict my worksheet to 20 rows & 20 columns.


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
Restrict add rows and columns Sasikiran Excel Discussion (Misc queries) 3 March 10th 09 04:00 PM
How do I restrict data entry to one of two columns but not both? Gillian Excel Discussion (Misc queries) 4 July 16th 08 06:06 PM
How do I restrict data entry to one of two columns Gillian Excel Discussion (Misc queries) 2 July 16th 08 02:07 PM
restrict columns that have auto filter Patricia Excel Discussion (Misc queries) 1 July 20th 07 08:14 PM
can i restrict data entry from certain columns surgeandoj Excel Discussion (Misc queries) 1 July 8th 05 05:28 PM


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

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"