Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Xl1 Xl1 is offline
external usenet poster
 
Posts: 1
Default xml import error

Dear newsgroupexperts,

Im getting crazy from this error message that repetently occurs when
importing xml.
the message is: some data is imported as text.

I do'nt care about this and do'nt want to press OK everytime, because there
are over 2000 xml-files everyday.
I have read the posts in this NG, regarding xml-import.

application.displayalerts=false, does'nt work.
ThisWorkbook.XmlMaps(1).ShowImportExportValidation Errors = False does
neither.

what can I do aubout this?

my code is:

Sub XMLbestandenLijst()
Dim T As Long, R As Long

Application.ScreenUpdating = False
xmlLkol = wblXML.Range("Tabel1").Columns.Count
If bDirChoice Then
For T = 1 To fnum
ThisWorkbook.XmlMaps(1).ShowImportExportValidation Errors = False
ThisWorkbook.XmlMaps(1).Import URL:=MyFiles(T)
If bImported Then Debug.Print MyFiles(T)
Application.StatusBar = " importing xml; ready: " & Round(T /
fnum * 100, 1) & "%"
Next T
End If
Application.StatusBar = "ready"
Application.ScreenUpdating = True
End Sub

If there are betterways of importing xml, using different objects please let
me know.

Best wishes,

Ernst




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default xml import error

Ernst

I found this...

http://www.ozgrid.com/forum/showthread.php?t=61415

The key for me was the DisplayAlerts.

Hope this helps

Have good cheer

John
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
XML Import Parsing error Jeff Excel Discussion (Misc queries) 1 October 10th 09 10:50 AM
Error on Import Ken Hudson Excel Programming 3 April 28th 06 07:31 PM
Connection/Import Error msgs Trudye[_2_] Excel Programming 0 March 20th 06 07:51 PM
Excel 2000 Import Error ken4capitola Excel Programming 2 November 22nd 05 11:22 PM
Import sheet error Edgar Thoemmes[_4_] Excel Programming 1 February 18th 05 12:45 PM


All times are GMT +1. The time now is 06:40 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"