Thread: OnClick event
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default OnClick event

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Address = "$H$1" Then
MsgBox "hello"
End If

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

RP
(remove nothere from the email address if mailing direct)


"lilika" wrote in message
om...
Hi guys,

I would like to ask you a question. I would like to prompt a user with
a message ( inputbox) when the click in a specific cell. How can I do
that?

Thanks in advance

Riri