ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   scroll lock (https://www.excelbanter.com/excel-discussion-misc-queries/53115-scroll-lock.html)

Benjamin

scroll lock
 
Is there any way to limit the range a user may scroll / select in a worksht?

TIA

Ben

Don Guillett

scroll lock
 
The vba help files are your friend

ScrollArea Property
See Also Applies To Example Specifics
Returns or sets the range where scrolling is allowed, as an A1-style range
reference. Cells outside the scroll area cannot be selected. Read/write
String.

Remarks
Set this property to the empty string ("") to enable cell selection for the
entire sheet.

Example
This example sets the scroll area for worksheet one.

Worksheets(1).ScrollArea = "a1:f10"
--
Don Guillett
SalesAid Software

"Benjamin" wrote in message
...
Is there any way to limit the range a user may scroll / select in a

worksht?

TIA

Ben




Benjamin

scroll lock
 
Thanks Don

"Don Guillett" wrote:

The vba help files are your friend

ScrollArea Property
See Also Applies To Example Specifics
Returns or sets the range where scrolling is allowed, as an A1-style range
reference. Cells outside the scroll area cannot be selected. Read/write
String.

Remarks
Set this property to the empty string ("") to enable cell selection for the
entire sheet.

Example
This example sets the scroll area for worksheet one.

Worksheets(1).ScrollArea = "a1:f10"
--
Don Guillett
SalesAid Software

"Benjamin" wrote in message
...
Is there any way to limit the range a user may scroll / select in a

worksht?

TIA

Ben





Don Guillett

scroll lock
 
glad to help

--
Don Guillett
SalesAid Software

"Benjamin" wrote in message
...
Thanks Don

"Don Guillett" wrote:

The vba help files are your friend

ScrollArea Property
See Also Applies To Example Specifics
Returns or sets the range where scrolling is allowed, as an A1-style

range
reference. Cells outside the scroll area cannot be selected. Read/write
String.

Remarks
Set this property to the empty string ("") to enable cell selection for

the
entire sheet.

Example
This example sets the scroll area for worksheet one.

Worksheets(1).ScrollArea = "a1:f10"
--
Don Guillett
SalesAid Software

"Benjamin" wrote in message
...
Is there any way to limit the range a user may scroll / select in a

worksht?

TIA

Ben








All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com