Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default OnClick event

Thanks a lot in works like magic

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnClick [email protected] Excel Discussion (Misc queries) 1 August 31st 06 06:08 PM
dynamic hyperlink or onclick event Tasha Excel Programming 2 February 16th 05 01:57 PM
onClick in Excel Nicole Excel Programming 3 January 25th 05 09:45 AM
onclick event for cell ties Excel Programming 4 July 20th 04 12:09 PM
range onclick? Dennis Excel Programming 2 November 23rd 03 07:34 PM


All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"