You could create a SelectionChange Event.
If it is for this sheet only, then it can be in the sheet module.
I the event macro, test to see if the selection is the cell you're monitoring.
Like:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If (Target.Address = "$A$1") Then MsgBox Target.Address & " is selected"
End Sub
Paul
-----------------------------------------
"Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can." - John Wesley
-----------------------------------------
________________________________
From: wasayraza90 <wasay.raza.qadri@gmail.com>
To: ExcelVBA@yahoogroups.com
Sent: Thu, March 1, 2012 5:18:57 PM
Subject: [ExcelVBA] [need]onclick msgbox
i want to apply such a macro that when i click a cell a msgbox opens
like
onclick.ActiveSheet.Cells(1, 1).MsgBox Msg
this type of something
can any one help me how to do this.
[Non-text portions of this message have been removed]
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Tidak ada komentar:
Posting Komentar