+ Reply to Thread
Results 1 to 3 of 3

WORKBOOK SheetChange error

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    WORKBOOK SheetChange error

    The workbook has a WORKBOOK SheetChange code which changes the values of multiple cells on multiple sheets. Consequently you cannot have Events Disabled, as each cell changing causes others to change. The result, the WORKBOOK SheetChange is fired repeatedly within itself.

    It fails at this point (but not on the first run)
    Please Login or Register  to view this content.
    Message:
    Run-time error ‘-2147417848 (80010108)’:
    Method ‘Cells’ of object’_Worksheet’ failed

    Regardless of what I change this line of code to, it still fails.

    HOWEVER, if I select debug I can step thru WITHOUT ERROR ?!?!?

    So, I added a delay, which eliminated the error!
    Please Login or Register  to view this content.
    However, now, after the code finishes I get any number of message boxes containing:
    Cannot run the macro “My Workbook’!True’. The macro may not be available in this workbook or all macros may be disabled.

    There is no macro named “True” so I have no idea what this is about. It doesn’t cause me any grief except the user has to say OK a half dozen times.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: WORKBOOK SheetChange error

    Can you post the rest of the code?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: WORKBOOK SheetChange error

    BTW, this only started when going from XL 2003 to XL2010

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. running Solver in vba with SheetChange
    By BHudPE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-23-2010, 11:48 PM
  2. SheetChange Event
    By solidsnake5698 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2007, 02:01 PM
  3. [SOLVED] sheetchange
    By masterphilch in forum Excel General
    Replies: 2
    Last Post: 10-29-2005, 05:05 PM
  4. SheetChange event restore old value
    By Anton Sommer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2005, 06:05 PM
  5. [SOLVED] How to know what caused SheetChange event..
    By Srini in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-26-2005, 07:06 PM

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