Thread: msgbox in VBA
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike Mike is offline
external usenet poster
 
Posts: 3,101
Default msgbox in VBA

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Address < Range("D11").Address Then Exit Sub
MsgBox "Cell D11 is selected"
End Sub

"peyman" wrote:

hi,
how can I write a code by which when only a cell like D11, is selected, a
msgbox pops up?
thanx