LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default vb code stopped running

Just guesses...

First, I'd change the security level to Medium--to check to see if I get
prompted.

Then double check your auto_open/workbook_open procedures to see if they do
something like:

application.enableevents = false
and later forget to re-enable the events.

In fact, open a workbook (with macros enabled).

Test it out (again!).
If your test fails, back to the VBE (alt-F11)
hit ctrl-g (to see the immediate window)
type this and hit enter:
application.enableevents = true

Back to one of the worksheets with the event and make a change to A1.

If it works, then events are disabled somewhere and not turned back on.



Masa Ito wrote:

For some reason our code stopped running on our spreadsheet. We save it
every month - and for the last two months it no longer asks us if we want
to enable macros when we open the workbook - and the code in our sheet does
not run.

We have code that runs on all of the sheets in our workbook like this:
Private Sub Worksheet_Change(ByVal Target As Range)
' capture a date change
If Target.Address = "$B$1" Then ...

I have tried switching the Security to low, but don't see anywhere else
that I can look?

I hit Alt-F11 to open the VB window - double click one of the sheets - put
a breakpoint on the Worksheet_Change event, but this event is never called.
Everyone is screaming at me! Help please. I am not very strong in Excel
programming.

Thanks,
Masa


--

Dave Peterson
 
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
Can someone please tell me why my code stopped working??? Damil4real Excel Worksheet Functions 0 November 24th 09 10:49 PM
VB code for running a macro rcc Excel Discussion (Misc queries) 3 January 23rd 08 02:53 AM
Running Code from Add-Ins DeanO Excel Programming 1 October 27th 05 05:20 PM
running code mark New Users to Excel 3 March 14th 05 09:14 AM
running VB code Cath[_3_] Excel Programming 1 November 21st 03 05:09 PM


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

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

About Us

"It's about Microsoft Excel"