ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to suppress XML import error message (https://www.excelbanter.com/excel-programming/405060-how-suppress-xml-import-error-message.html)

Shatin[_2_]

How to suppress XML import error message
 
I am using Excel 2003 under Vista.

I have a worksheet with several XML tables imported from the web and I use a
macro to refresh all the tables. Sometimes I'd get this error message:

Microsoft Office Excel encountered errors when importing the following
files:

Source: http://www.abc.com
Error: Some data was imported as text
Import Status: Complete

The thing is this error doesn't really matter to me. As long as the import
is complete, it's OK. I don't want to see this message when running the
macro. I tried "On Error Resume Next" but the error message is still
displayed. Is there any way I can make the message go away?

Thanks.


Mike Fogleman

How to suppress XML import error message
 
Perhaps Application.DisplayAlerts = False

Mike F
"Shatin" wrote in message
...
I am using Excel 2003 under Vista.

I have a worksheet with several XML tables imported from the web and I use
a macro to refresh all the tables. Sometimes I'd get this error message:

Microsoft Office Excel encountered errors when importing the following
files:

Source: http://www.abc.com
Error: Some data was imported as text
Import Status: Complete

The thing is this error doesn't really matter to me. As long as the import
is complete, it's OK. I don't want to see this message when running the
macro. I tried "On Error Resume Next" but the error message is still
displayed. Is there any way I can make the message go away?

Thanks.





All times are GMT +1. The time now is 10:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com