Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Restrict cells selected to specific range name

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Restrict cells selected to specific range name

try using Scrollarea property

to set scrollarea

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

to clear

Worksheets(1).ScrollArea = " "
--
jb


"John" wrote:

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

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
Start Macro when specific Cells are selected Mik Excel Programming 0 November 17th 09 09:20 PM
Protect/Restrict usage of a range of cells. Sri Harsha[_2_] Excel Discussion (Misc queries) 2 February 24th 09 12:03 PM
selecting a specific cell within a selected range BrianMo Excel Programming 5 September 29th 06 05:00 PM
How to restrict the TitleRow only for a specific range of rows? Oscar Excel Programming 1 April 6th 05 12:51 AM
Execute a Macro when specific value is selected in a Range Kevin Excel Programming 3 November 21st 03 03:54 AM


All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"