View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
BrianB BrianB is offline
external usenet poster
 
Posts: 1
Default Selection the previously selected cell

Use the Target variable supplied .. eg.

'--------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Value = 1 Then
MsgBox ("Error")
End If
End Sub
'----------------------------------------

--
Message posted from http://www.ExcelForum.com