View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David McRitchie
 
Posts: n/a
Default Movement of cursor

Hi L....,

So this is where you came after forsaking excel.setup.

You can use Sheet protection, or you can
use a Selection Event macro.

Worksheet_SelectionChange to prevent entry past a column
http://www.mvps.org/dmcritchie/excel/event.htm#ws_sc
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"davesexcel" wrote in message
...

I was thinking of a worksheet change event but this would only work if
you made a change in a cell so how about a right click event
when the user right clicks on the mouse he will be returned to column A
one row down

this code goes into the worksheet module

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
If Union(Range("$A:$N"), Target).Address = Range("$A:$N").Address Then

Application.SendKeys "{home}"
ActiveCell.Offset(1, 0).Range("A1").Select
Cancel = True
End If
End Sub


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=538718