Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Open workbook with unreadable content

I have a macro that loops thorugh a bunch of workbooks, opens them, copies
data in them, and pastes that data in the workbook I'm working in. One of
the workbooks always has an error message when it's opened manually that says
"Excel found unreadable content... do you want to recover..." 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'
failed".

I've already tried disabling the display alerts. Right now my code to open
the workbook reads:

Application.DisplayAlerts = False
Workbooks.Open Filename:=update_file_location
Application.DisplayAlerts = True

Any ideas to fix this problem? I appreciate the help!

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
UNREADABLE CONTENT Tree Excel Discussion (Misc queries) 0 March 30th 10 04:16 PM
unreadable content with no further actions Bing Excel Discussion (Misc queries) 0 November 7th 09 03:11 PM
Opening workbook - get error message : unreadable content, lostvbproject [email protected] Excel Programming 4 October 17th 08 03:35 PM
unreadable content Miri Excel Discussion (Misc queries) 1 April 24th 08 08:09 AM
Excel found unreadable content: auto.pilot Excel Discussion (Misc queries) 1 January 19th 08 07:04 PM


All times are GMT +1. The time now is 06:11 AM.

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"