ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   OnClick event (https://www.excelbanter.com/excel-programming/323764-onclick-event.html)

lilika

OnClick event
 
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

Bob Phillips[_6_]

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




[email protected]

OnClick event
 
Thanks a lot in works like magic



All times are GMT +1. The time now is 10:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com