+ Reply to Thread
Results 1 to 7 of 7

Private Sub Worksheet_Change stops working when I have certain workbooks open.

  1. #1
    Registered User
    Join Date
    11-11-2008
    Location
    New Zealand
    Posts
    4

    Private Sub Worksheet_Change stops working when I have certain workbooks open.

    hi,

    I have a large model (45 sheets) , with the following code on one of the sheets

    Please Login or Register  to view this content.

    It works fine at the moment with only that workbook open. However, with other workbooks open at the same open its stops working and it does not start working even after I close the other workbooks.

    Does anyone have any ideas?
    Last edited by forth250; 11-11-2008 at 09:13 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    Please take a few minutes to read the Forum Rules, and then edit your post to wrap your code with Code Tags.

    Try this:
    Please Login or Register  to view this content.
    Last edited by shg; 11-11-2008 at 06:51 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-11-2008
    Location
    New Zealand
    Posts
    4
    Thanks - but it does not seem to work.

    the "Projects" range is a series of 45 cellls each with drop down menus in them with three options. It works when I close the workbook down and reopen it with no other workbooks open.
    Last edited by forth250; 11-11-2008 at 09:26 PM.

  4. #4
    Registered User
    Join Date
    11-11-2008
    Location
    New Zealand
    Posts
    4
    Please Login or Register  to view this content.
    This also does not seem to work with other workbooks open either, and when I close the other workbooks.

    Does anyone have any ideas?

    I am working on abit of a deadline at the moment so any help would be much appreciated. Thanks Again

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You've introduced brand new code. How does this relate to the prior code?

    What happens / doesn't happen?

    What have you done to debug?

  6. #6
    Registered User
    Join Date
    11-11-2008
    Location
    New Zealand
    Posts
    4
    Cheers, The new bit of code run when the value in c12 changes. Like the first bit of code it works beautifully, but when I open up certian workbooks at the same time it fails to work. and continues not working even after I close down all other workbooks.


    Its definitely nothing to do with the macro that are being called. I have run them mannually and they work fine. The issue is the worksheet change events do not seem to work!

    I think it could be some thing do with the data valiadation drop down menu as I was ready about a possible MS bug.


    Bit again any help would be much appreciated.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    The variable datechange that you declare in the Activate event can't be seen by the code in the Calculate event. If you put Option Explicit at the top of the module, you'll see it doesn't compile.

    As to the change event 'not working', I suggest you put a breakpoint in the code to tell you whether the event is indeed firing.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1