View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
[email protected] bshumsky06@yahoo.com is offline
external usenet poster
 
Posts: 8
Default disable range selection

Great, thanks!

Bob Phillips wrote:
'-----------------------------------------------------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'-----------------------------------------------------------------

On Error GoTo ws_exit:
Application.EnableEvents = False
If Target.Count 1 Then Target.Cells(1, 1).Select
ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.





--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
ps.com...
Hi,
I would like to disable a user's ability to select ranges. I want to
restrict the user to selecting only one cell at a time in certain
worksheets. Is this possible?

Thanks,
Bob