+ Reply to Thread
Results 1 to 2 of 2

Automation Error with msAccess creating Excel Spreadsheet

  1. #1
    Guest
    Join Date
    01-02-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    30

    Automation Error with msAccess creating Excel Spreadsheet

    I have this code below to create an excel workbook, it spits out the queries and saves the file in the first procedure, then the next procedure opens the workbook for formatting.

    this all works fine on one pc but not another, they have identical office versions (2003), same n/w access, BUT the one that fails is running under Windows 8

    On the bad pc it opens 2 copies of excel, both with blank windows (no worksheet displayed), when the code finishes they are still both blank.
    the line of code that fails is shown in Italic, as no worksheet is visible it cannot select the worksheet.

    Can anybody see what may be wrong with the sub - format_sheets_now()



    Please Login or Register  to view this content.
    Code continues with lots of formatting...
    Last edited by trevor69; 02-03-2015 at 08:30 PM.

  2. #2
    Guest
    Join Date
    01-02-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    30

    Re: Automation Error with msAccess creating Excel Spreadsheet

    fixed it thanks.

    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. Facing 'run-time error -2147217871 (80040e31) Automation error' in excel VBA
    By junaidanjum in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2013, 03:48 AM
  2. Automation Error: Invalid Oleverb Structure when Creating Chart
    By Sharanya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2013, 04:56 PM
  3. Run time error 91 (MSACCESS, EXCEL)
    By mobidv in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2012, 02:52 PM
  4. Automation error when creating graphs
    By tacojoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2008, 12:20 PM
  5. When Running DDEInitiate, Error - Can't find MSAccess.exe?
    By bmupward in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2006, 10:55 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