Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Open Worksheet, Limit Users to Number of Rows & Columns

Is there a way to limit a user to a specific # of Rows & Columns upon opening
the workbook/worksheet?

Linda
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Open Worksheet, Limit Users to Number of Rows & Columns

You can set the scrollarea to a fixed range.

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:M56"
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:M56"
End With
End Sub


Gord Dibben MS Excel MVP

On Fri, 28 Mar 2008 12:06:01 -0700, LRay67
wrote:

Is there a way to limit a user to a specific # of Rows & Columns upon opening
the workbook/worksheet?

Linda


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Open Worksheet, Limit Users to Number of Rows & Columns

Thank You the 2nd scenario worked for us.

Linda

"Gord Dibben" wrote:

You can set the scrollarea to a fixed range.

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:M56"
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:M56"
End With
End Sub


Gord Dibben MS Excel MVP

On Fri, 28 Mar 2008 12:06:01 -0700, LRay67
wrote:

Is there a way to limit a user to a specific # of Rows & Columns upon opening
the workbook/worksheet?

Linda



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
limit number of rows in worksheet from 6000+ to 600 Samsky2174 Excel Worksheet Functions 2 March 9th 09 12:37 PM
how do i limit my worksheet size to say 11 columns and 11 rows. Richard New Users to Excel 1 August 24th 06 05:32 PM
is there a limit to the number of rows a worksheet can have? Debi Excel Discussion (Misc queries) 2 May 22nd 06 02:47 PM
How do I limit the number of rows displayed on a worksheet? cms31 Excel Discussion (Misc queries) 4 December 8th 05 06:20 PM
How do I limit number of rows and columns on a spreadsheet Valser New Users to Excel 3 February 12th 05 10:31 PM


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

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"