<?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 : Makrofejl ved reset af extern data</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Makrofejl ved reset af extern data]]></description>
  <pubDate>Sat, 05 Dec 2026 15:33:19 +0000</pubDate>
  <lastBuildDate>Sun, 11 Dec 2011 14:49:30 +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=555</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[Makrofejl ved reset af extern data : glad hvis jeg kunne hj&#230;lpe, tak...]]></title>
   <link>https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2903.html#2903</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=107">rassten</a><br /><strong>Emne:</strong> 555<br /><strong>Sendt:</strong> 11.Dec.2011 kl. 14:49<br /><br />glad hvis jeg kunne hjælpe, tak for tilbagemeldingen.]]>
   </description>
   <pubDate>Sun, 11 Dec 2011 14:49:30 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2903.html#2903</guid>
  </item> 
  <item>
   <title><![CDATA[Makrofejl ved reset af extern data : Hej rassten.  Endnu engang tusind...]]></title>
   <link>https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2902.html#2902</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=182">timer</a><br /><strong>Emne:</strong> 555<br /><strong>Sendt:</strong> 11.Dec.2011 kl. 05:30<br /><br />Hej rassten.<DIV>&nbsp;</DIV><DIV>Endnu engang tusind tak for hjælpen, det var lige præcis de linjer&nbsp;jeg skulle bruge.</DIV><DIV>Jeg er meget taknemlig.</DIV><DIV>Hej Timer.</DIV>]]>
   </description>
   <pubDate>Sun, 11 Dec 2011 05:30:04 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2902.html#2902</guid>
  </item> 
  <item>
   <title><![CDATA[Makrofejl ved reset af extern data :   Pr&#248;v evt: Sheets(&amp;#034;0&amp;#034;).Select...]]></title>
   <link>https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2899.html#2899</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=107">rassten</a><br /><strong>Emne:</strong> 555<br /><strong>Sendt:</strong> 09.Dec.2011 kl. 02:43<br /><br />Prøv evt:<div><table width="99%"><tr><td><pre class="BBcode"></div><div>Sheets("0").Select<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Range("A1:AB105").Select<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; ActiveSheet.Unprotect "'"<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Selection.ClearContents<br>On Error Resume Next ' ny linie<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Selection.QueryTable.Delete<br>On Error GoTo 0 ' ny linie</div><div>&nbsp;<br>&nbsp;&nbsp;&nbsp; ActiveWindow.SmallScroll Down:=-12<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Range("A1").Select<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; ActiveSheet.Protect Password:="'", DrawingObjects:=True, Contents:=True, Scenarios:=True<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Sheets("c052").Select<br>&nbsp;ActiveSheet.Unprotect "'" ' ny linie<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; Range("B7").Select</div><div>osv...</div><div></pre></td></tr></table></div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 02:43:33 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2899.html#2899</guid>
  </item> 
  <item>
   <title><![CDATA[Makrofejl ved reset af extern data : Glemte lige at vise linjen som...]]></title>
   <link>https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2898.html#2898</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=182">timer</a><br /><strong>Emne:</strong> 555<br /><strong>Sendt:</strong> 08.Dec.2011 kl. 10:40<br /><br />Glemte lige at vise linjen som viste fejl i makroen :<DIV>&nbsp;</DIV><DIV><SPAN style="mso-highlight: yellow"><FONT color=#990000 size=1>Selection.QueryTable.Delete</FONT></SPAN><?: PREFIX = O /><O:P></O:P></DIV>]]>
   </description>
   <pubDate>Thu, 08 Dec 2011 10:40:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2898.html#2898</guid>
  </item> 
  <item>
   <title><![CDATA[Makrofejl ved reset af extern data : Hej !  Jeg har lavet en Makro...]]></title>
   <link>https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2897.html#2897</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=182">timer</a><br /><strong>Emne:</strong> 555<br /><strong>Sendt:</strong> 08.Dec.2011 kl. 10:38<br /><br />Hej !<DIV>&nbsp;</DIV><DIV>Jeg har lavet en Makro som resetter / 0-stiller felter af importerede data.</DIV><DIV>Når jeg kører makroen efter at jeg har importeret externe data resetter / 0-stiller makroen også fint nok, men kører jeg makroen endnu en gang, altså efter at jeg har resettet / 0-stillet får jeg fejl:</DIV><DIV>&nbsp;</DIV><DIV><img src="/uploads/182/fejl.JPG" height="218" width="387" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>Makroen med fejl ser således ud :</DIV><DIV>&nbsp;</DIV><DIV><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1>Sub Reset052()<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1>'<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1>' Reset052 Makro<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=1>' Makro indspillet af SP<o:p></o:p></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1>'<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><o:p><FONT size=1>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1>'<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Sheets("0").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("A1:AB105").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveSheet.Unprotect "'"<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Selection.ClearContents<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style=": yellow; mso-highlight: yellow">Selection.QueryTable.Delete</SPAN><o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveWindow.SmallScroll Down:=-12<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("A1").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveSheet.Protect Password:="'", DrawingObjects:=True, Contents:=True, Scenarios:=True<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Sheets("c052").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("B7").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = ""<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("B8").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = ""<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("B9").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = ""<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("B10").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = ""<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("I19").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = "0"<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("I20").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = "0"<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("I21").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveCell.FormulaR1C1 = "0"<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Range("A1:N1").Select<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><FONT size=1><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ActiveSheet.Protect Password:="'", DrawingObjects:=True, Contents:=True, Scenarios:=True<o:p></o:p></FONT></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=1><SPAN style="mso-ansi-: EN-GB" lang=EN-GB><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN></SPAN>ActiveWorkbook.Save<o:p></o:p></FONT></P><P style="MARGIN: 0cm 0cm 0pt" =Ms&#111;normal><FONT size=1>End Sub</P><DIV></DIV><DIV></DIV></FONT><DIV><FONT size=1></FONT></DIV><DIV><FONT size=1></FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=2>Er der nogen der kan hjælpe mig til at denne makro kan køre selv om data allerede er slettet ?</FONT></DIV><DIV><FONT size=2>Hej Timer.</FONT></DIV></DIV>]]>
   </description>
   <pubDate>Thu, 08 Dec 2011 10:38:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/makrofejl-ved-reset-af-extern-data_topic555_post2897.html#2897</guid>
  </item> 
 </channel>
</rss>