+ Reply to Thread
Results 1 to 5 of 5

Issue with Macro/Object since upgrading to Office 2016 from 2010

  1. #1
    Registered User
    Join Date
    01-29-2018
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 2016
    Posts
    2

    Issue with Macro/Object since upgrading to Office 2016 from 2010

    Hi Everyone,

    I am a novice at VBA, and pretty much everything excel related too. I have hopefully a simple problem. I have a staff member that has upgraded her Office from 2010 to 2016. She has an excel workbook that was created like 5+years ago, with a whole bunch of forms and macro's contain within. If I run the macro's manually or click the buttons with the workbook on a computer running Excel 2010 (doesn't need to be her PC) it works perfectly, however when run on Excel 2016, it throws up a "Run-Time error "424" Object required" error.

    So far in terms of troubleshooting I have removed a "Missing reference" for "Microsoft Windows Common Controle-2 6.0 (SP6)" and also tried copying and registering the OCX file from a computer running Office 2010 to the 2016 PC. Either option does solve a lot of issues the workbook was having running the Macro's and so forth, but there is one button "Data Entry" that simply wont work. I have also enabled and trusted Macro's in Trust Centre.

    It seems my logical brain, that there is something different between Office 2010 and 2016 that is causing this issue.

    When I click of Debug, it highlights the following code:

    Please Login or Register  to view this content.

    When I hover over the Load frmDataEntry which is highlighted in yellow it shows this message:
    frmDataEntry = < Object variable or With Block Variable not set>


    I don't really know what else to look for or paste here either. I went to edit for the Macro DataEntry and this is the code:

    Please Login or Register  to view this content.

    Does anyone have any idea what could be causing this? I'd prefer to find a solution rather than downgrading her back to Office 2010, so any help would be greatly appreciated.

    Please let me know if you require anything further.

    Thanks in advance!
    Last edited by brett129; 01-30-2018 at 05:08 PM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Issue with Macro/Object since upgrading to Office 2016 from 2010

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    01-29-2018
    Location
    Brisbane, Australia
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: Issue with Macro/Object since upgrading to Office 2016 from 2010

    Apologies xInitwit, I have never used the forum prior to this post. I have updated the post as requested.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Issue with Macro/Object since upgrading to Office 2016 from 2010

    Thank you. What code do you have in the Initialize event of the form? If you keep pressing f8 after the error first appears, does the code continue to another error line?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Issue with Macro/Object since upgrading to Office 2016 from 2010

    Have you checked to see if there are any MISSING REFERENCES?

    Look in: VBE | Tools | References
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Office Pro Plus 2016 formulas issue
    By Twomey9 in forum Office 365
    Replies: 5
    Last Post: 08-29-2017, 08:15 AM
  2. Create Word Object not working in Office 2016 for mac.
    By shussain84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2017, 07:32 AM
  3. [SOLVED] Code not working in Office 2010 and Office 2016
    By amitmodi_mrt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 02:48 PM
  4. Replies: 1
    Last Post: 01-31-2016, 07:46 AM
  5. Office 2016 Is it worth Upgrading?
    By TwistedFaith in forum Excel General
    Replies: 0
    Last Post: 08-25-2015, 06:10 AM
  6. Replies: 0
    Last Post: 01-14-2013, 01:22 PM
  7. [SOLVED] Excel - how to prevent new office version from upgrading word object reference
    By Zoner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2006, 02:10 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