<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Dansk Regneark Forum : CSV importering med makro og dato formatering</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : CSV importering med makro og dato formatering]]></description>
  <pubDate>Sat, 05 Dec 2026 06:39:24 +0000</pubDate>
  <lastBuildDate>Mon, 06 Sep 2010 20:22:48 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.excel-regneark.dk/RSS_post_feed.asp?TID=76</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Dansk Regneark Forum]]></title>
   <url>https://forum.excel-regneark.dk/css_styles/Excel-regneark.dk/logo.png</url>
   <link>https://forum.excel-regneark.dk/</link>
  </image>
  <item>
   <title><![CDATA[CSV importering med makro og dato formatering : Velbekomme, Tak for din tilbagemelding...]]></title>
   <link>https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post306.html#306</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1">Allan</a><br /><strong>Emne:</strong> 76<br /><strong>Sendt:</strong> 06.Sep.2010 kl. 20:22<br /><br /><P>Velbekomme, Tak for din tilbagemelding <img src="/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /></P><DIV></DIV>Indlæg her i forum lukkes automatisk efter at have være inaktivt i et stykke tid, så det skal du ikke tænke på. <img src="/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /><DIV></DIV><DIV></DIV>God aften.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>//Allan</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Mon, 06 Sep 2010 20:22:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post306.html#306</guid>
  </item> 
  <item>
   <title><![CDATA[CSV importering med makro og dato formatering : Det virker perfekt. Tusind tak...]]></title>
   <link>https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post305.html#305</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=73">unichaos</a><br /><strong>Emne:</strong> 76<br /><strong>Sendt:</strong> 06.Sep.2010 kl. 19:28<br /><br />Det virker perfekt. Tusind tak for hjælpen :)<div>Kan man lukke tråden og markere den som besvaret?</div>]]>
   </description>
   <pubDate>Mon, 06 Sep 2010 19:28:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post305.html#305</guid>
  </item> 
  <item>
   <title><![CDATA[CSV importering med makro og dato formatering : Tak, jeg kigger p&#229; det n&#229;r jeg...]]></title>
   <link>https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post304.html#304</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=73">unichaos</a><br /><strong>Emne:</strong> 76<br /><strong>Sendt:</strong> 06.Sep.2010 kl. 15:24<br /><br />Tak, jeg kigger på det når jeg kommer hjem. Så vender jeg tilbage med resultatet. :)]]>
   </description>
   <pubDate>Mon, 06 Sep 2010 15:24:13 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post304.html#304</guid>
  </item> 
  <item>
   <title><![CDATA[CSV importering med makro og dato formatering : Hej unichaos,  Pr&#248;v med denne,...]]></title>
   <link>https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post302.html#302</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1">Allan</a><br /><strong>Emne:</strong> 76<br /><strong>Sendt:</strong> 06.Sep.2010 kl. 11:31<br /><br /><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">Hej unichaos,</SPAN></FONT></DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span"></SPAN></FONT>&nbsp;</DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">Prøv med denne, jeg antager at dine datoer starter i A1 og fortsætter nedad. Hvis jeg ikke har ret, så ret A1 til den øverste celle i dit ark.</SPAN></FONT></DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span"></SPAN></FONT>&nbsp;</DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">Lad os prøve om det virker :-)</SPAN></FONT></DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span"></SPAN></FONT>&nbsp;</DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">//Allan</SPAN></FONT></DIV><DIV><FONT size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span"></SPAN></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000cc size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">Sub AddCSV()<BR>&nbsp;&nbsp;&nbsp; strFile = Application.GetOpenFilename(Filefilter:="CSV Files (*.CSV),*.CSV")<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If strFile &lt;&gt; False Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LastRow = Range("A65536").End(xlUp).Row + 1<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With ActiveSheet.QueryTables.Add(Connection:="TEXT;" &amp; strFile, Destination:=Range("$A$" &amp; LastRow))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Name = "JyskeDownload"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FieldNames = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RowNumbers = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .FillAdjacentFormulas = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PreserveFormatting = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RefreshOnFileOpen = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RefreshStyle = xlInsertDeleteCells<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SavePassword = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .SaveData = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AdjustColumnWidth = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .RefreshPeriod = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFilePromptOnRefresh = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFilePlatform = 1252<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileStartRow = 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileParseType = xlDelimited<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileTextQualifier = xlTextQualifierDoubleQuote<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileConsecutiveDelimiter = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileTabDelimiter = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileSemicolonDelimiter = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileCommaDelimiter = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileSpaceDelimiter = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileColumnDataTypes = Array(9, 9, 1, 1, 9, 1, 9, 9)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .TextFileTrailingMinusNumbers = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Refresh BackgroundQuery:=False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Columns("C:C").Select<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selection.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"</SPAN></FONT></DIV><DIV><FONT color=#0000cc size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Columns("A:A").Select<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selection.Replace What:="~ ", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selection.Replace What:="~*", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False</SPAN></FONT></DIV><DIV><FONT color=#0000cc size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selection.TextToColumns Destination:=Range("<strong>A1</strong>"), _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False, _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Comma:=False, Space:=False, Other:=False, FieldInfo:=Array(1, 4), _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TrailingMinusNumbers:=True</SPAN></FONT></DIV><DIV><FONT color=#0000cc size=2 face="" ="apple-style-span"><SPAN style="FONT-SIZE: small" ="apple-style-span">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selection.NumberFormat = "dd\/mm\/yyyy"<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</SPAN></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 06 Sep 2010 11:31:04 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post302.html#302</guid>
  </item> 
  <item>
   <title><![CDATA[CSV importering med makro og dato formatering :  Hej.Jeg sidder og bakser med...]]></title>
   <link>https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post300.html#300</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=73">unichaos</a><br /><strong>Emne:</strong> 76<br /><strong>Sendt:</strong> 05.Sep.2010 kl. 20:47<br /><br />Hej.<div><br></div><div>Jeg sidder og bakser med en makro i Excel 2010.</div><div>Jeg importerer en CSV-fil hvori jeg vælger tre felter, det første er et datofelt som er formateret amerikansk (med punktum) men dansk rækkefølge dd.mm.yyyy</div><div>Endvidere er der en stjerne ved nogle af datoerne som jeg fjerne med en del af makroen.</div><div>Mit problem er at Excel formatere datoerne på amerikansk, så dagen bliver til måneden og måneden bliver til dagen.</div><div>Dog indtil dagen skifter til 12+. Derefter formatere den datoen på dansk.</div><div><br></div><div>Hvordan får jeg Excel til at formatere det efter "dd/mm/yyyy" ?</div><div><br></div><div>Men feltet&nbsp;formateres&nbsp;ikke til dato før jeg har markeret datoen og trykket enter.</div><div><br></div><div>Hvordan løser jeg det problem?</div><div><br></div><div>Min makro er postet her under:</div><div>----------------------</div><div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">Sub AddCSV()</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp;strFile = Application.GetOpenFilename(Filefilter:="CSV Files (*.CSV),*.CSV")</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp;</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp;If strFile &lt;&gt; False Then</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;LastRow = Range("A65536").End(xlUp).Row + 1</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp;</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;With ActiveSheet.QueryTables.Add(Connection:="TEXT;" &amp; strFile, Destination:=Range("$A$" &amp; LastRow))</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Name = "JyskeDownload"</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.FieldNames = True</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.RowNumbers = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.FillAdjacentFormulas = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.PreserveFormatting = True</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.RefreshOnFileOpen = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.RefreshStyle = xlInsertDeleteCells</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.SavePassword = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.SaveData = True</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.AdjustColumnWidth = True</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.RefreshPeriod = 0</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFilePromptOnRefresh = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFilePlatform = 1252</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileStartRow = 2</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileParseType = xlDelimited</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileTextQualifier = xlTextQualifierDoubleQuote</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileConsecutiveDelimiter = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileTabDelimiter = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileSemicolonDelimiter = True</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileCommaDelimiter = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileSpaceDelimiter = False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileColumnDataTypes = Array(9, 9, 1, 1, 9, 1, 9, 9)</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.TextFileTrailingMinusNumbers = True</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Refresh BackgroundQuery:=False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;End With</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Columns("C:C").Select</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Selection.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Columns("A:A").Select</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Selection.Replace What:="~ ", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Selection.Replace What:="~*", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Selection.Replace What:="~.", Replacement:="-", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Selection.NumberFormat = "dd/mm/yyyy"</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">&nbsp;&nbsp; &nbsp;End If</span></font></div><div><font ="apple-style-span"="" face="'Courier New', Courier, mono"><span ="apple-style-span"="" style="font-size: small;">End Sub</span></font></div></div><div>----------------------</div><div>På forhånd tak.</div>]]>
   </description>
   <pubDate>Sun, 05 Sep 2010 20:47:07 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/csv-importering-med-makro-og-dato-formatering_topic76_post300.html#300</guid>
  </item> 
 </channel>
</rss>