+ Reply to Thread
Results 1 to 2 of 2

Append columns using ADOx, sometimes creates a corrupted file

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    1

    Append columns using ADOx, sometimes creates a corrupted file

    Dear Excel-experts

    Since a two weeks i try to generate an automated excel workflow, which involves an external workbook containing (some) data, which has to be copied to yet another external workbook. The program i try to write intermediates this proces (and has some additional functions, which isn't relevant dor this particular procedure).

    In this automated prcedure, Field-data has to be copied every 15 minutes from the (always newly updated) data-source workbook (with a constant filename), to the target-workbook. And i try to accomplish this all without opening and closing these workbooks over and over again (even not in the background).

    So far i managed to set up an ADODB.connection with the source-workbook and it works perfectly to copy my data in a class-collection, without opening this workbook in the background.
    I use ADOX.Catalog to append a new field every 15 minutes in the target Workbook.
    However, something these procedure works perfectly, and other times it generates a corrupted file, causeing errors in my procedure, because of the inability to make a propper connection with the target workbook.

    Please Login or Register  to view this content.
    In the code above i denoted where the problem is being generated.

    I hope you guys have some suggestions or idea's to overcome this problem.

    Thank you in advance!!

    Rixne

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Append columns using ADOx, sometimes creates a corrupted file

    When the file becomes corrupt are there any error occurring in the code?
    If posting code please use code tags, see here.

+ 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. Corrupted file
    By Sean Thomas in forum Excel General
    Replies: 0
    Last Post: 01-20-2014, 07:47 AM
  2. Corrupted file
    By gjjh25 in forum Excel General
    Replies: 3
    Last Post: 05-02-2013, 01:58 PM
  3. Extract Columns from Excel Files then Append to .CSV file
    By r0mmel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2011, 05:06 AM
  4. Fix corrupted file
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2010, 06:21 PM
  5. [SOLVED] Corrupted file
    By poul, denmark in forum Excel General
    Replies: 2
    Last Post: 04-24-2005, 04:06 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