If you right-click on your "sheet tab" and select "View Code",
do you see your change event?

If so, try setting a breakpoint on your "If" statement 
and add something to A1 to see if it stops.

If it does not:

What version of Excel are you using?
When you opened Excel, did it ask you to Enable Macros?


let me know and we'll go from there...

Paul




________________________________
From: Darren <dar...@ptpartners.net.au>
To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com>
Sent: Friday, June 19, 2009 3:41:42 AM
Subject: $$Excel-Macros$$ Problems with Worksheet_Change Event


Hi,

I have inserted the following code (n.b. I have gone not into the
Modules section, but rather into the Worksheet / Change event for the
specific sheet I am working on):

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
MsgBox "A1 has changed."
End If
End Sub

However, when I enter a cell in A1 of that sheet, nothing happens.

Can anyone shed any light on why this code is not actioning as it
should?

Kind regards,
Darren Hagarty





--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to