A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Restrict Number of Columns



 
 
Thread Tools Display Modes
  #1  
Old February 13th, 2010, 09:20 AM posted to microsoft.public.excel.worksheet.functions
xxx
external usenet poster
 
Posts: 6
Default Restrict Number of Columns

How do i restrict my worksheet to 20 rows & 20 columns.
  #2  
Old February 13th, 2010, 09:49 AM posted to microsoft.public.excel.worksheet.functions
Lars-Åke Aspelin[_2_]
external usenet poster
 
Posts: 722
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  
Old February 13th, 2010, 05:30 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.