LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default CorruptLoad param of Workbooks.Open

if you've been really good, maybe you could use Sendkeys and send an escape (or
whatever you need to dismiss that dialog).

But if you're unlucky, your sendkeys could go to a different application and
hose that one up.



Microsoft wrote:

The workbook is re-created on a daily basis, so I can't just fix it once- It
has to be fixed every day. (It is the product of another program's "export"
facility.) My app just makes the necessary changes to the workbook and then
emails it out.
Maybe there's another way around it...
Thanks again for your help!

"Tom Ogilvy" wrote in message
...
That is the only command that suppresses warning messages (that I am aware
of) - but apparently this message doesn't fall in the category of messages
it will suppress.

Why not just fix the workbook one time and be done with it?

--
Regards,
Tom Ogilvy

"Microsoft" wrote in message
...
Thanks for your swift reply.
I've tried DisplayAlerts but the dialog box still opens.
Any other suggestions?

Thanks!

"Tom Ogilvy" wrote in message
...
You can try

application.DisplayAlerts = False
' open the workbook
application.DisplayAlerts = True

don't know if it will suppress this prompt or not AND if it suppresses

the
message, whether it will save or not.

--
Regards,
Tom Ogilvy

"Microsoft" wrote in message
...
I have a VB app that opens an excel workbook, makes some

modifications
/
additions, and then saves / closes the workbook. It was working fine
until
I
upgraded to Excel 2003. Now attempting to open the workbook results

in
an
[color blue]Error 1004 - Method 'Open' of object 'Workbooks'
failed
.
I've determined that the issue is an invalid Worksheet name, so I

added
the
CorruptLoad:=xlRepairFile parameter to my

Workbooks.Open
instruction. Excel now repairs the worksheet name on open, however

now
I
get
a confirmation dialog box that asks if I want to save the repaired

file.
Is there any way to open the workbook, repair/correct the worksheet
name,
and continue on making my changes without showing any dialog boxes?
Thanks for your help!
Charlton







[/color]

--

Dave Peterson

 
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
when i open an Excell file 3 workbooks open.Why? Iain40 Excel Discussion (Misc queries) 2 February 3rd 09 05:04 PM
open a spreadsheet with param ITDUDE27 Excel Discussion (Misc queries) 1 April 19th 06 07:55 AM
When I open Excel, workbooks open automatically. How can I stop t Rhealbird Excel Discussion (Misc queries) 2 February 23rd 06 10:08 AM
Workbooks.Open closes other workbooks S. Daum Excel Programming 1 August 21st 03 07:47 PM
Workbooks.Open / .Open Text - How do you stop the .xls addition? Dave[_20_] Excel Programming 2 July 31st 03 04:03 AM


All times are GMT +1. The time now is 05:57 AM.

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

About Us

"It's about Microsoft Excel"