+ Reply to Thread
Results 1 to 3 of 3

Changed Versions of Office Macro Error

  1. #1
    Registered User
    Join Date
    06-12-2015
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Changed Versions of Office Macro Error

    Hello,

    We have just changed from Windows 7 and Office 2007 to Windows 10 and Office 2016. A macro which was previously working fine now comes up with an error. Below is the code, in the 'COPY TO DATA' section it shows as the error Selection.Insert Shift:=xlDown. Error is 'Automation error. The object invoked has disconnected from its clients.

    Sorry for the long code, wasn't sure if best to post just that section or all of it.

    Thank you in advance.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,192

    Re: Changed Versions of Office Macro Error

    I am on Windows 10 and Office 2016 and it works fine.

    can you put a stop on the copy before Sheets("Data").Select
    then step thru 1 line at a time and watch?

  3. #3
    Registered User
    Join Date
    06-12-2015
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    91

    Re: Changed Versions of Office Macro Error

    Found that when I moved it to another folder it worked fine. Then I changed the text in a cell and it didn't work again.

    I've just created a new version of the spreadsheet from scratch and it all seems to be fine now. No idea what was causing it 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. [SOLVED] Distributing multi-app VBA solutions to people with different versions of Office
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-19-2016, 06:47 PM
  2. Replies: 0
    Last Post: 11-01-2013, 07:39 AM
  3. [SOLVED] VBA Compatibility between different Office Versions
    By Alla88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2013, 08:06 AM
  4. Open Excel Document Read-only for Office versions prior to 2007
    By S.Graham.H in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2012, 06:50 AM
  5. both versions of Office (Excel) on my computer
    By petri in forum Excel General
    Replies: 9
    Last Post: 08-17-2010, 01:37 PM
  6. installing 2 versions of excel(or office on same pc)
    By martindwilson in forum Excel General
    Replies: 11
    Last Post: 11-23-2008, 02:41 PM
  7. Webquery datafield naming changed between excel versions 97 and 20
    By nippetee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2005, 09:06 AM

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