Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet.Change macro doesn't run in 2007
I converted an Excel 2000 spreadsheet to Excel 2007, to an xlsm file
(macros allowed). It has a very simple Worksheet Change macro stored in the code "behind" one of the worksheets: Private Sub Worksheet_Change(ByVal Target As Excel.Range) ' Balance entered? If Target.Column = 5 Then Target.Offset(0, 1).Value = Date ' Amount paid entered? If Target.Column = 11 Then Target.Offset(0, -1).Value = Date End Sub This macro shows up in the xlsm file when I right-click the worksheet tab and select "View Code" in the context menu. The file is password-protected, so I have to enter the password to open it. The macro doesn't run at all. I have tried putting a Stop command after the Private Sub line, so I know the macro doesn't get called when I change the value of a cell. It should get called for a change to any cell on that worksheet. What I have tried: In the Trust Center, I have the path that this file comes from, listed in the "Trusted Locations". The Macro Settings are set to disable macros NOT in a trusted location, WITH notification... this shouldn't apply, since the file is in a trusted location, but I'm not getting notified anyway. I have Message Bar set to tell me if content has been blocked. I searched Google to try to find out what could cause this not to run the same way in 2007 that it did in 2000. Is there something I need to do, to turn on events in Excel 2007? Thanks. David Walker |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy Worksheet, Change Query Parameters 2007 vs 2003 | Excel Discussion (Misc queries) | |||
change direction worksheet excel 2007 right to left | Excel Discussion (Misc queries) | |||
How do I change the color of the MS 2007 worksheet tabs? | Excel Worksheet Functions | |||
Change Macro Button Color 2007 | Excel Discussion (Misc queries) | |||
Cell value change to trigger macro (worksheet change event?) | Excel Programming |