PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Setup limit worksheet view to specified cell range

Reply

limit worksheet view to specified cell range

 
Thread Tools Rate Thread
Old 16-12-2004, 04:13 PM   #1
=?Utf-8?B?TWlrZQ==?=
Guest
 
Posts: n/a
Default limit worksheet view to specified cell range


I'm creating a form with excel and would like users to view a specified cell
range. I know how to protect cells. The form is A1-F94 and I would like users
to only see that range of cells.
  Reply With Quote
Old 16-12-2004, 11:00 PM   #2
George Nicholson
Guest
 
Posts: n/a
Default Re: limit worksheet view to specified cell range

If using VBA you can use the ScrollArea property. As I recall, this setting
is not persistent (i.e., it doesn't save with the workbook) so it needs to
be set in the WorkbookOpen event or something similar.

--
George Nicholson

Remove 'Junk' from return address.


"Mike" <Mike@discussions.microsoft.com> wrote in message
news6557644-631F-43A0-9450-547E32AE4D18@microsoft.com...
> I'm creating a form with excel and would like users to view a specified
> cell
> range. I know how to protect cells. The form is A1-F94 and I would like
> users
> to only see that range of cells.



  Reply With Quote
Old 16-12-2004, 11:13 PM   #3
Gord Dibben
Guest
 
Posts: n/a
Default Re: limit worksheet view to specified cell range

Mike

Hiding the unused rows and columns then protecting the sheet is one method.

Setting the scrollarea using VBA is another method.

Note: Setting ScrollArea is good for that session only and only the
activesheet. Has to be reset next time workbook is opened.

Best to place the code into a WorkBook_Open Sub in ThisWorkbook module and
specify which worksheet.

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

Gord Dibben Excel MVP

On Thu, 16 Dec 2004 08:13:02 -0800, "Mike" <Mike@discussions.microsoft.com>
wrote:

>I'm creating a form with excel and would like users to view a specified cell
>range. I know how to protect cells. The form is A1-F94 and I would like users
>to only see that range of cells.


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off