+ Reply to Thread
Results 1 to 3 of 3

Workbook_SheetChange not working in Excel 2010

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Workbook_SheetChange not working in Excel 2010

    Hi,

    I created .xlsm in Excel 2016 (Professional Plus) on Win 10. It works fine in Excel 2016, but file is intented for use in Excel 2010 (also Pro Plus).
    File was created from my available .lib references, which is Microsoft Excel 16.0 library.

    When I ran file in Excel 2010 on Win 7, I had to eliminate missing .lib reference of Microsoft Excel 16.0 library for avoiding VBA error "Can't find project or library",
    because available reference in Excel 2010 is only Microsoft Excel 14.0 library.
    Solution for this is suggested here:https://support.microsoft.com/en-us/...e-when-you-run

    So file opens now without any VBA error and everything works fine except Workbook_SheetChange code, which is not even being fired:
    Please Login or Register  to view this content.

    Code doesn't look too complicated to me, so I'm out ideas on what could be wrong. So If you have any suggestions - thanks in advance !

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Workbook_SheetChange not working in Excel 2010

    When you say the SheetChange event isn't being fired is that by direct observation, i.e. where you have toggled a Breakpoint on the first line of code and the breakpoint is never invoked, or without a break point nothing happens.

    What sets the value of the track_changes variable and what is it?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Workbook_SheetChange not working in Excel 2010

    Hi Richard,

    thanks for pointing me out, I fixed problem.

    Explanation - I have also Workbook_Open event :

    Please Login or Register  to view this content.
    So, in Workbook_Open I set track_changes to True, then lock 1st sheet. This works in Excel 2016 and Win10, but not in Excel 2010. I had to move track_changes=True inside If statement, after locking sheet, and now code works. It's still weird thing for me though.

+ 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. Workbook_SheetChange / Open Recordset #vba #sql #excel
    By cooksteve09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2017, 04:15 PM
  2. [SOLVED] Workbook_SheetChange for Excel 2007?
    By Andrew Entee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2016, 08:53 PM
  3. [SOLVED] Excel 2010 &A12 not working?
    By Lewis Koh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2013, 09:10 AM
  4. Macro not working in Excel 2010 but working in Excel 2003
    By mvel_sky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2013, 04:18 PM
  5. coding previously working in Excel 2003 version not working in Excel 2010
    By petercalbra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2012, 10:51 AM
  6. Workbook_SheetChange evet Macro not working
    By ALaws in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2008, 12:01 PM
  7. [SOLVED] Workbook_SheetChange not working
    By RAP in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2005, 12:05 PM

Tags for this Thread

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