|
-
Sep 15th, 2004, 09:19 AM
#1
Thread Starter
Lively Member
want to start a macro when click on a cell
I would like to start a macro every time users click a certain cell, but i don't know how to do it
thanks
Last edited by writelearner; Sep 22nd, 2004 at 09:54 AM.
-
Sep 15th, 2004, 03:14 PM
#2
PowerPoster
Re: want to start a macro when click on a cell
Originally posted by writelearner
I would like to start a macro every time users click a certain cell, but i don't know how to do it
thanks
replace the message box call with a call to your macro in the code below to run it when cell A1 is clicked
VB Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Row = 1 Then
If Target.Cells.Column = 1 Then
MsgBox "Hi"
End If
End If
End Sub
-
Sep 16th, 2004, 01:22 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|