ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to limit scrollable area (https://www.excelbanter.com/excel-programming/401186-how-limit-scrollable-area.html)

VanS[_2_]

How to limit scrollable area
 
Hello,
I have an EXcel VBA app and want to limit what the user can see on each
worksheet. The user needs to able able to scroll a certain amount to view
only the work area, but any ideas how I can limit the viewable area to no
more than that. I assume to somehow limit the extent of scrolling, but the
work area can vary, at least vertically.
Thanks,
Van

Nigel[_2_]

How to limit scrollable area
 
You could hide all rows and columns that the user should not scroll into?

--

Regards,
Nigel




"VanS" wrote in message
...
Hello,
I have an EXcel VBA app and want to limit what the user can see on each
worksheet. The user needs to able able to scroll a certain amount to view
only the work area, but any ideas how I can limit the viewable area to no
more than that. I assume to somehow limit the extent of scrolling, but the
work area can vary, at least vertically.
Thanks,
Van



David Messenger

How to limit scrollable area
 
If you have the following Text Variables Defined

SheetName ie "Sheet1"
MyScrollArea ie "A1:D40"

Use the Line Sheets(SheetName).ScrollArea = MyScrollArea

Should achieve what you are requesting.

If you use variables like the above, or a subroutine, you could make the
ScrollArea change as more data was entered or if otherwise required.

"VanS" wrote:

Hello,
I have an EXcel VBA app and want to limit what the user can see on each
worksheet. The user needs to able able to scroll a certain amount to view
only the work area, but any ideas how I can limit the viewable area to no
more than that. I assume to somehow limit the extent of scrolling, but the
work area can vary, at least vertically.
Thanks,
Van


VanS[_2_]

How to limit scrollable area
 
Thanks, David, sounds good. I'll give it a try.
God bless
Van

"David Messenger" wrote:

If you have the following Text Variables Defined

SheetName ie "Sheet1"
MyScrollArea ie "A1:D40"

Use the Line Sheets(SheetName).ScrollArea = MyScrollArea

Should achieve what you are requesting.

If you use variables like the above, or a subroutine, you could make the
ScrollArea change as more data was entered or if otherwise required.

"VanS" wrote:

Hello,
I have an EXcel VBA app and want to limit what the user can see on each
worksheet. The user needs to able able to scroll a certain amount to view
only the work area, but any ideas how I can limit the viewable area to no
more than that. I assume to somehow limit the extent of scrolling, but the
work area can vary, at least vertically.
Thanks,
Van



All times are GMT +1. The time now is 10:03 PM.

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