Specify ScrollArea in a Sheet

  • Thread starter Thread starter helmekki
  • Start date Start date
H

helmekki

Hi there

IS there a code to set the scrollArea as the follow:

Code:
--------------------
Sheet1.ScrollArea = "A1, A4, A7"
--------------------


i mean to scroll, only, in the mentioned cells A1 A4 A7.


Thank u
 
Hi

Not with ScrollArea, the range must be one area

But :
Uncheck locked first in the properties of the three cells

If you are using 2002 or 2003 you can protect your sheet and uncheck
Select locked cells.

If you use 97 or 2000 you must use code to do this.
post back if you want a example
 
Good evening Helmekki

You might have to clarify what you mean here, Hesham. You can
certainly restrict a user to a RANGE, but if you want to restrict
individual cells, you might be better off using the Tools > Protection
method. Use this to restrict a user to an area:

Worksheets("Sheet1").ScrollArea="A1:B100"

and this to undo it:

Worksheets("Sheet1").ScrollArea=""

is this what you meant?

HTH

DominicB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top