Disable Error message in Excel

Any idea how to temporarily disable conversion message with Excel VBA ?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I have seen documentation that states there is no way to turn of this message with the Office compatibility pack when opening an XLSX (presuming in this case based on information given) with Office 2003 (also presuming).  Sometimes this dialog is a problem with VBA coding.  Some people put a sleep function call to allow time for the user to clear before the scripting continues.  The best solution is to migrate to the new version of office or change the file back to an older file version.
I don't have a pre-2007 Excel available to test this, but have you tried
Application.DisplayAlerts = False

Open in new window

before your open call, and setting it back to True afterwards.  If that still does no turn it off then you're back to what Aeriden suggested.
Actually I just realised I can test it using Excel 2002 - my suggestion does suppress the warning message, so there's no interruption to the user, but the file still opens in Read-only mode, and I can't see a way to prevent that.  If you need to make updates to it, you'll have to use SaveAs to create a new file, which will have lost the overlapping conditional formatting that is the thing you are being warned about.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.