OnClick event

  • Thread starter Thread starter lilika
  • Start date Start date
L

lilika

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
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Input Box 2
VB and combo box 3
Excel and drop down list 1
Mail Merge issue please HELP 1
Inputbox Verbiage 3
Combine three InputBoxes into one? 7
Printing App 2
Macro Help 1

Back
Top