<?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 : VBA Mange nye ark</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : VBA Mange nye ark]]></description>
  <pubDate>Sat, 05 Dec 2026 10:22:33 +0000</pubDate>
  <lastBuildDate>Sat, 25 Jan 2014 14:43:31 +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=1522</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[VBA Mange nye ark : Som de f&#248;rste linjer i din makro...]]></title>
   <link>https://forum.excel-regneark.dk/vba-mange-nye-ark_topic1522_post7081.html#7081</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 1522<br /><strong>Sendt:</strong> 25.Jan.2014 kl. 14:43<br /><br />Som de første linjer i din makro kode laver du disse linjer:<table width="99%"><tr><td><pre class="BBcode"><font color="#0000FF">With</font> Application<br>&nbsp;&nbsp;&nbsp; .EnableEvents = <font color="#0000FF">False</font><br>&nbsp;&nbsp;&nbsp; .DisplayAlerts = <font color="#0000FF">False</font><br>&nbsp;&nbsp;&nbsp; .ScreenUpdating = <font color="#0000FF">False</font><br>&nbsp;&nbsp;&nbsp; .Calculation = xlCalculationManual<br><font color="#0000FF">End With</font><br>ActiveSheet.DisplayPageBreaks = <font color="#0000FF">False<font color="#000000"></pre></td></tr></table>...og, som de sidste linjer i din makro kode laver du disse:<table width="99%"><tr><td><pre class="BBcode"></font></font><font color="#0000FF">With</font> Application<br>&nbsp;&nbsp;&nbsp; .Calculation = xlCalculationAutomatic<br>&nbsp;&nbsp;&nbsp; .ScreenUpdating = <font color="#0000FF">True</font><br>&nbsp;&nbsp;&nbsp; .DisplayAlerts = <font color="#0000FF">True</font><br>&nbsp;&nbsp;&nbsp; .EnableEvents = <font color="#0000FF">True</font><br><font color="#0000FF">End With</pre></td></tr></table><font color="#000000">Se evt. mere her:</font><br>www.excelgaard.dk/Lib/Macros/SpeedUp/  www.excelgaard.dk/Lib/Macros/SpeedUp/</a> <br><br><font color="#000000">Oh, og lad være med at .Select dine regneark - slet de linjer,&nbsp; hvor du laver .Select - det er den stor tidsrøver her...</font><br></font>]]>
   </description>
   <pubDate>Sat, 25 Jan 2014 14:43:31 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-mange-nye-ark_topic1522_post7081.html#7081</guid>
  </item> 
  <item>
   <title><![CDATA[VBA Mange nye ark :  Som s&#229; mange andre er jeg ogs&#229;...]]></title>
   <link>https://forum.excel-regneark.dk/vba-mange-nye-ark_topic1522_post7080.html#7080</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1057">Mje</a><br /><strong>Emne:</strong> 1522<br /><strong>Sendt:</strong> 25.Jan.2014 kl. 12:02<br /><br />Som så mange andre er jeg også nybegynder inden for VBA, men jeg har formået at lave denne kode som generere x antal nye ark udfra liste. <img src="https://forum.excel-regneark.dk/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /><div>mit problem er at det taget meget lang tid at generer de 365 ark som jeg skal bruge </div><div>&nbsp;</div><div>kan man gøre nedestående kode mere simpel så den køre hurtigere?</div><div>&nbsp;</div><div>&nbsp;</div><div>Sub Nye_Ark_Fra_Skabelon()</div><div><br>'Autogenerer x antal nye ark og navngiver dem efter liste i "Ark1"<br>'angiv navn på ark i kollonne A1 og nedefter</div><div>&nbsp;</div><div>Dim newsheet As Worksheets<br>Dim r As Integer<br>r = 1</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp; Do While Sheets("ark1").Cells(r, 1).Value &lt;&gt; ""<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sheets("skabelon").Select<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sheets("skabelon").Copy After:=Sheets("ark1")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sheets("skabelon (2)").Select<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sheets("skabelon (2)").Name = Sheets("ark1").Cells(r, 1).Value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r = r + 1<br>&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br></div>]]>
   </description>
   <pubDate>Sat, 25 Jan 2014 12:02:10 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-mange-nye-ark_topic1522_post7080.html#7080</guid>
  </item> 
 </channel>
</rss>