+ Reply to Thread
Results 1 to 5 of 5

Macros not working after upgrade to v2010

  1. #1
    Registered User
    Join Date
    06-19-2009
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Macros not working after upgrade to v2010

    ***** EDIT *****
    Never mind... I'm an idiot

    The problem was I deleted a column from the worksheet the same time the upgrade happened and I never changed the test column to reflect the now missing column... column 9 is now column 7

    Please disrgard.

    **********************Original post is below**************************




    I have some VBA that simply move a row to the last row of another worksheet.... worked fine.

    Recently, my company upgraded (without telling any one or allowing any one to test anything out) to version 2010. Now, none of my maros work. If I click on the View Macros, nothing is listed there. If I right click on the sheet tab and select "View Code".... the VBA is all still there.... but dosen't execute.

    Here is the code of one of my macros


    Please Login or Register  to view this content.
    I have gone into File -> Options -> Trust Center -> Trust Center Settings-> Marco Settings and set "Enable all macros" as well as checking "Trust access to the VBA project object model".... with no luck.

    Any help would be appreciated.
    Last edited by Boomn4x4; 10-20-2010 at 11:13 AM.

  2. #2
    Registered User
    Join Date
    06-19-2009
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macros not working after upgrade to v2010

    I have also now Saved As and Macro-Enabled Worksheet.... Still no luck.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macros not working after upgrade to v2010

    Hi Boomn4x4,

    First -
    To see why the code isn't triggering, set a breakpoint and step through your code. If there is an error created you will see it jump at that line down to your ErrHnd:

    I believe 2010 is backward compatible with all (most?) 2003 macros. There are huge differences on how the file is saved and a complete redo of come components (like charting) between 2003 and 2007.

    Second -
    I'd remark out the Application.EnableEvents = False and see if that was hurting something.

    Third -
    Using one above, the event may not even be getting triggered. You will know by setting a breakpoint in the code if the event is triggered.

    hope one of the above finds the problem.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macros not working after upgrade to v2010

    Ah Ha,

    Stepping through the code would not have caused an error, it would have simply not met the If conditon and jumped the code.

    Answer one would have worked.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macros not working after upgrade to v2010

    Is this solved? What does your edit to the first post mean?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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