Restrict cells selected to specific range name

J

John

HI,

I would like to restrict selection of cells to only a range say the
dimensions of a range name. Is this possibly in VBA please.

EG My rangename is Weeks which is the range A1:B10 and i dont want any users
to access cells outside of this range. Hope that makes sense.

Thanks
JB
 
J

john

try using Scrollarea property

to set scrollarea

Worksheets(1).ScrollArea = "A1:B10"

to clear

Worksheets(1).ScrollArea = " "
 

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

Top