Still quiet new to VBA and no native english speaker, so hope i didn't just miss something...
I need to connect a long list of XML's together in 1 CSV. This is done by opening the XML's one by one into a seperate workbook and then writing the needed values away to a textfile. I know this is not optimal, but it was a inherited from a former colleague:
For i_path = 0 to 9
myPath(i_path) = "C:\Base databases\NUM08072016\ReadingFolder0" & (i_path) & "\"
Dim myFile
myFile = Dir(myPath(i_path) & "*.xml")
Do While myFile <> ""
Set WB = Workbooks.OpenXML(Filename:=myPath(i_path) & myFile)
----Write certain columns to textfile-----
WB.Close False
myFile = Dir()
Loop
Next i_path
Now one of the columns I need has an Preset ID with all digits. Unfortunatly this preset ID has a length of 16. As you might guess, when it doesn't start with 0, it loses the 16th digit (and replaces it with a 0).
Question: Is there a sollution for this (for example forcing OpenXML to put everything in strings?). For short term an answer would be nice.
For long term I do realize the limitations of excel pushes towards a sollution in for example java.