{"id":329,"date":"2010-05-11T14:21:05","date_gmt":"2010-05-11T13:21:05","guid":{"rendered":"http:\/\/www.venco.com.pl\/~cozy\/blog\/?p=329"},"modified":"2010-05-11T14:21:05","modified_gmt":"2010-05-11T13:21:05","slug":"xml-w-excelu","status":"publish","type":"post","link":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2010\/05\/11\/xml-w-excelu\/","title":{"rendered":"XML w Excelu"},"content":{"rendered":"<p>Private Sub ListXML()<br \/>\nDim sFile As String<br \/>\nDim i As Long, kat As String<br \/>\ni = 1<br \/>\nkat = &#8222;c:\\batman\\*.xml&#8221;<br \/>\n<!--more--><br \/>\nsFile = Dir(kat) '&lt;=== change to suit<\/p>\n<p>Do While sFile &lt;&gt; &#8222;&#8221;<\/p>\n<p>ActiveWorkbook.XMLImport URL:= _<br \/>\nsFile, ImportMap:=Nothing, Overwrite:=True, Destination:=Cells(i, &#8222;A&#8221;)<\/p>\n<p>ActiveWorkbook.XmlMaps(1).Delete<br \/>\n'Zawsze usuwamy pierwsz\u0105 map\u0119. Po usuni\u0119ciu mapy, ich numeracja si\u0119 zmienia.<\/p>\n<p>On Error Resume Next<\/p>\n<p>sFile = Dir<\/p>\n<p>On Error GoTo 0<br \/>\ni = i + 1<\/p>\n<p>Loop<\/p>\n<p>End Sub<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Private Sub ListXML() Dim sFile As String Dim i As Long, kat As String i = 1 kat = &#8222;c:\\batman\\*.xml&#8221;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2010\/05\/11\/xml-w-excelu\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii","tag-rozne"],"_links":{"self":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":0,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/329\/revisions"}],"wp:attachment":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/categories?post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}