Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbook which having unreadable contents is not getting opened

Some of the workbooks always has an error message when it's opened manually
that says


"Excel found unreadable content in "filename". Do you want to recover the
contents of this workbook? If you trust the source of this workbook,ckick
Yes."

and when I click "Yes" the workbook opens just fine. However, when I try to
open it with VBA, I get an error message saying "Method 'Open' of objects
'Workbooks'class failed".

Please help me out,it is very urgent

Thanks in Advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Workbook which having unreadable contents is not getting opened

Hello Ravindra,

What version of xl are you using?

When opened manually, after the initial unreadable content message, when the
workbook does open, does it tell you if anything was deleted or anything else
to provide a clue as to what might have occurred? If so, post the exact
message.

If you open the workbook manually and save it.
Make an alteration and re-save it.
Close the workbook.
Re-open the workbook.
Do you still get the error message?
I ask the above because sometimes code which is updating the workbook can be
the problem. An example is when using code to sort; if it is missing the line
to clear the sort fields before applying the sort then it can occur.

Can you post the code you are using to open the workbook?

--
Regards,

OssieMac


"Ravindra SYSTIME" wrote:

Some of the workbooks always has an error message when it's opened manually
that says


"Excel found unreadable content in "filename". Do you want to recover the
contents of this workbook? If you trust the source of this workbook,ckick
Yes."

and when I click "Yes" the workbook opens just fine. However, when I try to
open it with VBA, I get an error message saying "Method 'Open' of objects
'Workbooks'class failed".

Please help me out,it is very urgent

Thanks in Advance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open workbook with unreadable content Jacque Excel Programming 0 April 23rd 09 06:21 PM
Opening workbook - get error message : unreadable content, lostvbproject [email protected] Excel Programming 4 October 17th 08 03:35 PM
my excel files are being opened in Word and are unreadable Why? willy New Users to Excel 2 August 5th 06 05:49 PM
Opening a workbook if not opened, going to it if already opened neotokyo[_3_] Excel Programming 0 September 24th 04 08:56 PM
Opening a workbook if not opened, going to it if already opened neotokyo[_2_] Excel Programming 1 September 24th 04 07:17 PM


All times are GMT +1. The time now is 08:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"