+ Reply to Thread
Results 1 to 2 of 2

Open files with error using VBA

  1. #1
    Forum Contributor
    Join Date
    08-19-2010
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    151

    Open files with error using VBA

    Hello,

    I have an excel application which gets input data by importing xls files.

    My problem:

    I get the xls files from a different system so I can not change the way the are created.

    When I try to open the input files in excel 2007 I get the error: "Excel found an unreadable content ...choose yes to repair ..."
    If I choose "yes" and let excel solve the problem, it opens the file. After opening the file, If I press "save" and open it again with excel 2007 there is no problem.

    If I open the original data file in excel 2003 there is no problem.

    I have a VBA macro which import the data file to my application.
    How can I handle the error using VBA and open the file despite this error ?

    Thank you for your help

  2. #2
    Forum Contributor
    Join Date
    08-19-2010
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    151

    Re: Open files with error using VBA

    Hello,

    I will try to rewrite my question -
    Is it possible to open xls files with excel 2007 vba in case excel finds unreadable content and suggest recover ?
    Could my vba code choose "yes" and open the file despite the error ?

    Thank you for your help

+ 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