Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Limit working area of a sheet

Hi,
We have a spreadsheet which limits the available cells you can enter values
into - basically A1 to N40. If you show column headers these are not shown
either for rows/columns outside that range.
I wish to know where this is set so that I can do it on other sheets, but do
not know how.
Does anyone have any ideas?
Many thanks.
Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Limit working area of a sheet

"Andy" wrote in message
...
We have a spreadsheet which limits the available cells you can enter
values
into - basically A1 to N40. If you show column headers these are not shown
either for rows/columns outside that range.
I wish to know where this is set so that I can do it on other sheets, but
do
not know how.
Does anyone have any ideas?


Hi Andy,

The only way I'm aware of to not display row and column headers beyond a
certain area is to hide all rows below that area and hide all columns to the
right of that area. Select them all and choose Format/Row/Hide and
Format/Column/Hide from the menu.

You can limit the area that the user has access to without hiding all
those rows and columns by adding the a startup macro similar to the
following to your workbook, changing the name of the worksheet as
appropriate.

Sub Auto_Open()
Sheet1.ScrollArea = "$A$1:$N$40"
End Sub

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Limit working area of a sheet

Rob,
Many thanks for your post. The first method you listed (format/row/hide etc)
did the trick. I couldn't actually get the auto_open macro to work, but then
again maybe it doesn't work in Excel 97 (which I forgot to point out).

Many thanks for your help.

Andy

"Rob Bovey" wrote:

"Andy" wrote in message
...
We have a spreadsheet which limits the available cells you can enter
values
into - basically A1 to N40. If you show column headers these are not shown
either for rows/columns outside that range.
I wish to know where this is set so that I can do it on other sheets, but
do
not know how.
Does anyone have any ideas?


Hi Andy,

The only way I'm aware of to not display row and column headers beyond a
certain area is to hide all rows below that area and hide all columns to the
right of that area. Select them all and choose Format/Row/Hide and
Format/Column/Hide from the menu.

You can limit the area that the user has access to without hiding all
those rows and columns by adding the a startup macro similar to the
following to your workbook, changing the name of the worksheet as
appropriate.

Sub Auto_Open()
Sheet1.ScrollArea = "$A$1:$N$40"
End Sub

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Limit working area of a sheet

the auto_open macro must be placed in a general/standard module (the type
you get when you do Insert=Module in the VBE).

See Chip Pearson's page on Events

http://www.cpearson.com/excel/events.htm

Auto_Open works in versions from xl5 to xl2003 although in xl97 and later
you might want to use the workbook_Open event in the ThisWorkbook module.

--
Regards,
Tom Ogilvy

"Andy" wrote in message
...
Rob,
Many thanks for your post. The first method you listed (format/row/hide

etc)
did the trick. I couldn't actually get the auto_open macro to work, but

then
again maybe it doesn't work in Excel 97 (which I forgot to point out).

Many thanks for your help.

Andy

"Rob Bovey" wrote:

"Andy" wrote in message
...
We have a spreadsheet which limits the available cells you can enter
values
into - basically A1 to N40. If you show column headers these are not

shown
either for rows/columns outside that range.
I wish to know where this is set so that I can do it on other sheets,

but
do
not know how.
Does anyone have any ideas?


Hi Andy,

The only way I'm aware of to not display row and column headers

beyond a
certain area is to hide all rows below that area and hide all columns to

the
right of that area. Select them all and choose Format/Row/Hide and
Format/Column/Hide from the menu.

You can limit the area that the user has access to without hiding

all
those rows and columns by adding the a startup macro similar to the
following to your workbook, changing the name of the worksheet as
appropriate.

Sub Auto_Open()
Sheet1.ScrollArea = "$A$1:$N$40"
End Sub

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *






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
Working Around 240 Character PRN Field Width Limit Confused_in_Houston[_2_] Excel Discussion (Misc queries) 1 January 20th 10 09:25 PM
File, print area, clear area, is not working cblind New Users to Excel 2 September 12th 07 04:51 PM
Why I get gray area in sheet tab of page setup? can't resize area. joey0617 Excel Discussion (Misc queries) 1 July 15th 06 05:30 PM
how do i remove the limit set on the worskheet i am working on arcticale Excel Discussion (Misc queries) 2 April 26th 06 09:37 AM
Working Around Excel Row Limit James Stephens Excel Programming 7 April 5th 04 03:38 AM


All times are GMT +1. The time now is 04:50 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"