<?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 : Kode kører langsomt pga. størrelsen</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Kode kører langsomt pga. størrelsen]]></description>
  <pubDate>Sat, 05 Dec 2026 13:39:06 +0000</pubDate>
  <lastBuildDate>Thu, 17 Jan 2019 20:01:38 +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=3756</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[Kode kører langsomt pga. størrelsen : Hej Max.Den speeder koden helt...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18568.html#18568</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1125">Ib Hansen</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 17.Jan.2019 kl. 20:01<br /><br />Hej Max.<div><br></div><div>Den speeder koden helt ufatteligt op.</div><div>Før tog det 1-1½ sekund før Listboxen blev opdateret.</div><div>Med din kode sker det næste øjeblikkeligt.</div><div><br></div><div>Tusind tak&nbsp;<img src="https://forum.excel-regneark.dk/smileys/smiley42.gif" border="0" alt="Handshake" title="Handshake" /></div><div><br></div><div>Mvh.</div><div>Ib</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 17 Jan 2019 20:01:38 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18568.html#18568</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : Hej IbJeg tror muligvis, at dette...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18558.html#18558</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1747">maxzpad</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 17.Jan.2019 kl. 14:39<br /><br />Hej Ib<br><br>Jeg tror muligvis, at dette kan hjælpe på hastigheden af koden.<br><br>I stedet for eksempelvis<br><br><div>Sheets("IndtastVagt").Range("F1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 5).PasteSpecial xlPasteFormulas<br><br>så prøv med<br><br><div>&nbsp; &nbsp; nrf.Offset(0, 5).FormulaR1C1 = Sheets("IndtastVagt").Range("F1").FormulaR1C1<br><br><br><br>Mvh Max<br></div></div>]]>
   </description>
   <pubDate>Thu, 17 Jan 2019 14:39:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18558.html#18558</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : God dag - jeg ringer fra analyseinstituttet...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18557.html#18557</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 17.Jan.2019 kl. 13:13<br /><br /><ul><li>God dag - jeg ringer fra analyseinstituttet 'Utrolig irriterende' - må jeg havde lov til, at stille dig nogle spørgsmål?<br><br></li><li>Ja, selvfølgelig.<br>Hvem må jeg skrive på som reference?<br><br></li><li>Reference?<br><br></li><li>Ja, og, hvor skal jeg sende fakturaen til?<br><br></li><li>Fakturaen?<br><br></li><li>Ja, min tid er jo ikke gratis...<br>Du vil vel heller ikke arbejde gratis for andre, for at de kan tjene penge?<br><br></li><li>*dut* *dut* *dut*<br></li></ul>]]>
   </description>
   <pubDate>Thu, 17 Jan 2019 13:13:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18557.html#18557</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : Jeg troede du havde mit nummer.Ja,...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18551.html#18551</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1125">Ib Hansen</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 16.Jan.2019 kl. 16:51<br /><br />Jeg troede du havde mit nummer.<div><br>Ja, jeg tror også det er pga. de 111 kolonner, der skal kopieres, for at arket beregner rigtigt.</div><div><br></div><div>Mht. koden du sendte.</div><div>Ja, jeg har prøvet at indsætte begge koder som du beskrev.</div><div>Jeg ændrede dog&nbsp;<span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono;"><b><font color="#ff0000">ActiveSheet</font></b>.DisplayPageBreaks = </span><font color="#0000FF" style="font-family: &quot;Courier New&quot;, Courier, mono;">False</font>&nbsp;til&nbsp;<span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><b><font color="#ff0000">Sheets("IndtastVagt"</font></b>)</span>&nbsp;i stedet.</div><div>Dette da man er på en anden side, når koden køres, men det skulle vel ikke ødelægge koden.</div><div><br></div><div>Jeg tænkte på at køre op til dig med et USB stick, da jeg har en "Rediger vagt kode", der laver en sorteringsfejl, når arket startes igen, efter at være gemt.</div><div>Den kan jeg simpelthen ikke regne ud og jeg er løbet tør for ideer..</div><div>Den ødelægger hele arket.</div><div><br></div><div>Og så har jeg en tids/case kode i WorkSheet(1)_Change, der laver fejl, når et tidspunkt tastes i cellen uden minutter og med komma som separator.</div><div>F.eks. bliver 13,00 til 00:13, men hvis der bruges separator skulle der komme en warning.</div><div>Problemet kan løses ved at formaterer indtastningscellerne som Tekst, men det går ud over alle andre beregninger der laver&nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><b><font color="#ff0000">#VÆRDI</font></b></span>&nbsp;fejl.</div><div><br></div><div>Jeg prøver at ringe i morgen efter kl. 18:00.<br><br>Ps. Mht. påtrængende sælgere.</div><div>Spørg om de har tjekket <a href="http://www.borger.dk/bolig-og-flytning/Beskyttelse-mod-reklamer/Robins&#111;nlisten-markedsfoeringsbeskyttelse" target="_blank" rel="nofollow"><b><u>Robinson Listen</u></b></a> næste gang og bed dem om at slette dit nummer fra databasen.<br>Så undskylder de mange gange og lægger på&nbsp;<img src="https://forum.excel-regneark.dk/smileys/smiley36.gif" border="0" alt="LOL" title="LOL" /><br><br></div>]]>
   </description>
   <pubDate>Wed, 16 Jan 2019 16:51:26 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18551.html#18551</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : N&#229;h, det er dig, der fors&#248;ger,...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18548.html#18548</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 16.Jan.2019 kl. 16:22<br /><br />Nåh, det er dig, der forsøger, at ringe <img src="https://forum.excel-regneark.dk/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br>Ja, det der med at svare ukendte numre, der altid er påtrængende telefonsælgere eller marketingfolks, er ikke lige mig.<br>Men, jeg ligger lige dit nummer ind, så kan det være, at du er heldigere næste gang (jeg arbejder dog sent i dag - så prøv i morgen ved 18:00 tiden)<br><div>Mit nummer er 51 xx xx xx</div><div>(Vi burde osse snart ses - vi bor jo ikke mere end 10 km. fra hinanden <img src="https://forum.excel-regneark.dk/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" />)<br><br></div><div>Lidt svært, at gennemskue, hvad der galt med dit regneark, men jeg tror, at hoved årsagen er alle dine mange '.PasteFormulas'.</div><div><br></div><div>Hver ENESTE gang du laver en '.PasteFormula' gen-beregnes hele dit regneark - og, selvom det kun tager 1 sekund, hver gang, ja, så bliver det til mange sekunder i løbet af din kode, med alle de '.PasteValues', du har.<br><br>Har du virkelig indsat alle linjerne fra min kode, inkl. <table width="99%"><tr><td><pre class="BBcode">.Calculation = xlCalculationManual</pre></td></tr></table>...der gerne skulle undgå konstant gen-beregning, hver eneste gang du laver den mindste ændring i regnearket?</div>]]>
   </description>
   <pubDate>Wed, 16 Jan 2019 16:22:28 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18548.html#18548</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : Hej Excelgaard.Nej jeg kendte...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18546.html#18546</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1125">Ib Hansen</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 16.Jan.2019 kl. 14:08<br /><br />Hej Excelgaard.<div><br></div><div>Nej jeg kendte den ikke, men når jeg prøver koderne speeder den ikke processen op.</div><div>Den laver også en opdaterings fejl i Listboxen, jeg ikke kan forklare.</div><div>Den indsætter mærkelige tegn i stedet for klokkeslætformat.</div><div><br></div><div>Jeg har for øvrigt forsøgt at ringe til dig flere gange, da jeg et par enkelte store problemer, jeg ikke kan løse&nbsp;<img src="https://forum.excel-regneark.dk/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" /></div><div>Jeg ved ikke, om jeg har det rigtige nr. som jeg ikke vil skrive her.</div><div>Jeg har faktisk 2 numre, jeg har forsøgt.</div><div>- 51xx.xxxx</div><div>- 21xx.xxxx</div><div><br></div><div>Mvh.</div><div>Ib</div><div><br></div><div>Her er koden for øvrigt.</div><div>Den er temmelig lang og kan sikkert gøres meget smartere.</div><div>Jeg ved dog ikke hvordan&nbsp;<img src="https://forum.excel-regneark.dk/smileys/smiley6.gif" border="0" alt="Unhappy" title="Unhappy" /></div><div><table width="99%"><tr><td><pre class="BBcode">Private Sub CommandButton3_Click()</div><div>'------------------------------------------------'</div><div>' Indsæt og gem vagt&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'</div><div>' Skriver værdierne på vagten i næste frie celle '</div><div>'------------------------------------------------'</div><div>'Opdaterer ikke skærm</div><div>&nbsp; &nbsp; Application.ScreenUpdating = False</div><div>&nbsp; &nbsp;&nbsp;</div><div>'Advarsel ved manglende udfyldelse</div><div>&nbsp; &nbsp; If Me.TextBox2 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld vagtnavn"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox2.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox3 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld starttid"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox3.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.CheckBox1 = True And Me.TextBox4 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld 1.del slut"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox4.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.CheckBox1 = True And Me.TextBox5 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld 2.del start"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox5.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox6 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld sluttid"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox6.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox7 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld pausen" &amp; vbNewLine &amp; "&nbsp; &nbsp;Hvis ingen pause, skriv 0"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox7.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox8 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld pausen" &amp; vbNewLine &amp; "&nbsp; &nbsp;Hvis ingen pause, skriv 0"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox8.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox9 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld pausen" &amp; vbNewLine &amp; "&nbsp; &nbsp;Hvis ingen pause, skriv 0"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox9.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox10 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld pausen" &amp; vbNewLine &amp; "&nbsp; &nbsp;Hvis ingen pause, skriv 0"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox10.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox11 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld by."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox11.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If Me.TextBox12 = "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "&nbsp; &nbsp;Udfyld kilometer."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.TextBox12.SetFocus</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div><br></div><div>'nrf = next free row</div><div>&nbsp; &nbsp; Dim nfr As Range</div><div>'Finder den næste frie række</div><div>&nbsp; &nbsp; Set nrf = Worksheets("IndtastVagt").Range("A1000").End(xlUp).Offset(1, 0)</div><div><br></div><div>'Indsætter data fra textboxene</div><div>&nbsp; &nbsp; nrf.Offset(0, 0).Value = TextBox2.Value '................Vagt..............Kol 1</div><div>&nbsp; &nbsp; nrf.Offset(0, 1).Value = TextBox3.Value '................Start tid.........Kol 2</div><div>&nbsp; &nbsp; nrf.Offset(0, 2).Value = TextBox4.Value '................1. del slut.......Kol 3</div><div>&nbsp; &nbsp; nrf.Offset(0, 3).Value = TextBox5.Value '................2. del start......Kol 4</div><div>&nbsp; &nbsp; nrf.Offset(0, 4).Value = TextBox6.Value '................Slut tid..........Kol 5</div><div>&nbsp; &nbsp;&nbsp;</div><div>'-----------------------------------------------'............Betalt pause......Kol 6</div><div>' 5-6-7 = Kol 6-7-8 skal kopieres nedad i fanen '............Selvbetalt pause..Kol 7</div><div>'-----------------------------------------------'............Eff timer.........Kol 8</div><div><br></div><div>&nbsp; &nbsp; nrf.Offset(0, 10).Value = TextBox7.Value '...............Pause 1 start.....Kol 11</div><div>&nbsp; &nbsp; nrf.Offset(0, 11).Value = TextBox8.Value '...............Pause 1 slut......Kol 12</div><div>&nbsp; &nbsp; nrf.Offset(0, 12).Value = TextBox9.Value '...............Pause 2 start.....Kol 13</div><div>&nbsp; &nbsp; nrf.Offset(0, 13).Value = TextBox10.Value '..............Pause 2 slut......Kol 14</div><div>&nbsp; &nbsp; nrf.Offset(0, 8).Value = TextBox11.Value '...............By................Kol 9</div><div>&nbsp; &nbsp; nrf.Offset(0, 9).Value = TextBox12.Value '...............Km................Kol 10</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("F1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 5).PasteSpecial xlPasteFormulas '............................Kol 6</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("G1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 6).PasteSpecial xlPasteFormulas '............................Kol 7</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("H1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 7).PasteSpecial xlPasteFormulas '............................Kol 8</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div><br></div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 14) = "X X -&gt;" '.........................Start / Slut / Delt vagt</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 14).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 14).Font.Color = vbRed '..................................Kol 15</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("P1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 15).PasteSpecial xlPasteFormulas '...........................Kol 16</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("Q1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 16).PasteSpecial xlPasteFormulas '...........................Kol 17</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("R1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 17).PasteSpecial xlPasteFormulas '...........................Kol 18</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 18) = "X X -&gt;" '.......................Betalt / Selvbetalt pause</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 18).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 18).Font.Color = vbRed '..................................Kol 19</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("T1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 19).PasteSpecial xlPasteFormulas '...........................Kol 20</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("U1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 20).PasteSpecial xlPasteFormulas '...........................Kol 21</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("V1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 21).PasteSpecial xlPasteFormulas '...........................Kol 22</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("W1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 22).PasteSpecial xlPasteFormulas '...........................Kol 23</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("X1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 23).PasteSpecial xlPasteFormulas '...........................Kol 24</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;Sheets("IndtastVagt").Range("Y1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 24).PasteSpecial xlPasteFormulas '...........................Kol 25</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 25) = "X X -&gt;" '.................................Effektive timer</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 25).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 25).Font.Color = vbRed '..................................Kol 26</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AA1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 26).PasteSpecial xlPasteFormulas '...........................Kol 27</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AB1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 27).PasteSpecial xlPasteFormulas '...........................Kol 28</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 28) = "X X -&gt;" '.....................................Aftentillæg</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 28).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 28).Font.Color = vbRed '..................................Kol 29</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AD1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 29).PasteSpecial xlPasteFormulas '...........................Kol 30</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AE1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 30).PasteSpecial xlPasteFormulas '...........................Kol 31</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AF1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 31).PasteSpecial xlPasteFormulas '...........................Kol 32</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AG1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 32).PasteSpecial xlPasteFormulas '...........................Kol 33</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AH1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 33).PasteSpecial xlPasteFormulas '...........................Kol 34</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AI1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 34).PasteSpecial xlPasteFormulas '...........................Kol 35</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AJ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 35).PasteSpecial xlPasteFormulas '...........................Kol 36</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AK1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 36).PasteSpecial xlPasteFormulas '...........................Kol 37</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AL1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 37).PasteSpecial xlPasteFormulas '...........................Kol 38</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AM1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 38).PasteSpecial xlPasteFormulas '...........................Kol 39</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AN1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 39).PasteSpecial xlPasteFormulas '...........................Kol 40</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 40) = "X X -&gt;" '.......................................Nattillæg</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 40).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 40).Font.Color = vbRed '..................................Kol 41</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AP1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 41).PasteSpecial xlPasteFormulas '...........................Kol 42</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AQ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 42).PasteSpecial xlPasteFormulas '...........................Kol 43</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AR1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 43).PasteSpecial xlPasteFormulas '...........................Kol 44</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AS1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 44).PasteSpecial xlPasteFormulas '...........................Kol 45</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AT1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 45).PasteSpecial xlPasteFormulas '...........................Kol 46</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AU1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 46).PasteSpecial xlPasteFormulas '...........................Kol 47</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AV1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 47).PasteSpecial xlPasteFormulas '...........................Kol 48</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AW1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 48).PasteSpecial xlPasteFormulas '...........................Kol 49</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AX1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 49).PasteSpecial xlPasteFormulas '...........................Kol 50</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AY1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 50).PasteSpecial xlPasteFormulas '...........................Kol 51</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("AZ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 51).PasteSpecial xlPasteFormulas '...........................Kol 52</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 52) = "X X -&gt;" '...................................Lørdagstillæg</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 52).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 52).Font.Color = vbRed '..................................Kol 53</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BB1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 53).PasteSpecial xlPasteFormulas '...........................Kol 54</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BC1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 54).PasteSpecial xlPasteFormulas '...........................Kol 55</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BD1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 55).PasteSpecial xlPasteFormulas '...........................Kol 56</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BE1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 56).PasteSpecial xlPasteFormulas '...........................Kol 57</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BF1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 57).PasteSpecial xlPasteFormulas '...........................Kol 58</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BG1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 58).PasteSpecial xlPasteFormulas '...........................Kol 59</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BH1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 59).PasteSpecial xlPasteFormulas '...........................Kol 60</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BI1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 60).PasteSpecial xlPasteFormulas '...........................Kol 61</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BJ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 61).PasteSpecial xlPasteFormulas '...........................Kol 62</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BK1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 62).PasteSpecial xlPasteFormulas '...........................Kol 63</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BL1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 63).PasteSpecial xlPasteFormulas '...........................Kol 64</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 64) = "X X -&gt;" '....................................Grundlovsdag</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 64).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 64).Font.Color = vbRed '..................................Kol 65</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BN1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 65).PasteSpecial xlPasteFormulas '...........................Kol 66</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BO1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 66).PasteSpecial xlPasteFormulas '...........................Kol 67</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BP1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 67).PasteSpecial xlPasteFormulas '...........................Kol 68</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BQ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 68).PasteSpecial xlPasteFormulas '...........................Kol 69</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BR1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 69).PasteSpecial xlPasteFormulas '...........................Kol 70</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BS1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 70).PasteSpecial xlPasteFormulas '...........................Kol 71</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BT1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 71).PasteSpecial xlPasteFormulas '...........................Kol 72</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BU1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 72).PasteSpecial xlPasteFormulas '...........................Kol 73</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BV1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 73).PasteSpecial xlPasteFormulas '...........................Kol 74</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BW1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 74).PasteSpecial xlPasteFormulas '...........................Kol 75</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BX1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 75).PasteSpecial xlPasteFormulas '...........................Kol 76</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 76) = "X X -&gt;" '....................................Start før SH</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 76).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 76).Font.Color = vbRed '..................................Kol 77</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("BZ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 77).PasteSpecial xlPasteFormulas '...........................Kol 78</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CA1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 78).PasteSpecial xlPasteFormulas '...........................Kol 79</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CB1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 79).PasteSpecial xlPasteFormulas '...........................Kol 80</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CC1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 80).PasteSpecial xlPasteFormulas '...........................Kol 81</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CD1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 81).PasteSpecial xlPasteFormulas '...........................Kol 82</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CE1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 82).PasteSpecial xlPasteFormulas '...........................Kol 83</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CF1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 83).PasteSpecial xlPasteFormulas '...........................Kol 84</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CG1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 84).PasteSpecial xlPasteFormulas '...........................Kol 85</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CH1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 85).PasteSpecial xlPasteFormulas '...........................Kol 86</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CI1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 86).PasteSpecial xlPasteFormulas '...........................Kol 87</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CJ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 87).PasteSpecial xlPasteFormulas '...........................Kol 88</div><div>&nbsp; &nbsp; '-------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 88) = "X X -&gt;" '.......................................SH tillæg</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 88).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 88).Font.Color = vbRed '..................................Kol 89</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CL1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 89).PasteSpecial xlPasteFormulas '...........................Kol 90</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 90) = "X X -&gt;" '.........................SH tillæg - Bruges ikke</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 90).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 90).Font.Color = vbRed '..................................Kol 91</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CN1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 91).PasteSpecial xlPasteFormulas '...........................Kol 92</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CO1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 92).PasteSpecial xlPasteFormulas '...........................Kol 93</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 93) = "X X -&gt;" '.........................SH tillæg - Bruges ikke</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 93).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 93).Font.Color = vbRed '..................................Kol 94</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CQ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 94).PasteSpecial xlPasteFormulas '...........................Kol 95</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CR1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 95).PasteSpecial xlPasteFormulas '...........................Kol 96</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CS1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 96).PasteSpecial xlPasteFormulas '...........................Kol 97</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CT1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 97).PasteSpecial xlPasteFormulas '...........................Kol 98</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CU1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 98).PasteSpecial xlPasteFormulas '...........................Kol 99</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CV1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 99).PasteSpecial xlPasteFormulas '..........................Kol 100</div><div>&nbsp; &nbsp; '--------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 100) = "X X -&gt;" '........................................Diverse</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 100).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 100).Font.Color = vbRed '................................Kol 101</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CX1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 101).PasteSpecial xlPasteFormulas '.........................Kol 102</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CY1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 102).PasteSpecial xlPasteFormulas '.........................Kol 103</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("CZ1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 103).PasteSpecial xlPasteFormulas '.........................Kol 104</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("DA1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 104).PasteSpecial xlPasteFormulas '.........................Kol 105</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("DB1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 105).PasteSpecial xlPasteFormulas '.........................Kol 106</div><div>&nbsp; &nbsp; '---------------------------------------------------------------------------------</div><div>&nbsp; &nbsp;&nbsp;</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 106) = "X X -&gt;" '........................................Overtid</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 106).Font.Bold = True</div><div>Rem&nbsp; &nbsp; nrf.Offset(0, 106).Font.Color = vbRed '................................Kol 107</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("DD1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 107).PasteSpecial xlPasteFormulas '.........................Kol 108</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("DE1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 108).PasteSpecial xlPasteFormulas '.........................Kol 109</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("DF1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 109).PasteSpecial xlPasteFormulas '.........................Kol 110</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("DG1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 110).PasteSpecial xlPasteFormulas '.........................Kol 111</div><div>&nbsp; &nbsp; '---------------------------------------------------------------------------------</div><div><br></div><div>'Sortere stigende efter vagt</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Sort.SortFields.Add Key:=Range("A1"), _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal</div><div>&nbsp; &nbsp; With ActiveWorkbook.Worksheets("IndtastVagt").Sort</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .SetRange Range("A1:DG1000")</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Header = xlYes '***** xlNo ny 29-07-2017</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .MatchCase = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Orientation = xlTopToBottom</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .SortMethod = xlPinYin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Apply</div><div>&nbsp; &nbsp; End With</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>'Sletter textboxene</div><div>&nbsp; &nbsp; TextBox2 = ""</div><div>&nbsp; &nbsp; TextBox3 = ""</div><div>&nbsp; &nbsp; TextBox4 = ""</div><div>&nbsp; &nbsp; TextBox5 = ""</div><div>&nbsp; &nbsp; TextBox6 = ""</div><div>&nbsp; &nbsp; TextBox7 = ""</div><div>&nbsp; &nbsp; TextBox8 = ""</div><div>&nbsp; &nbsp; TextBox9 = ""</div><div>&nbsp; &nbsp; TextBox10 = ""</div><div>&nbsp; &nbsp; TextBox11 = ""</div><div>&nbsp; &nbsp; TextBox12 = ""</div><div><br></div><div>'Opdaterer listen i userform</div><div>&nbsp; &nbsp; Dim rk As Long</div><div>&nbsp; &nbsp; Dim sv As Long</div><div>&nbsp; &nbsp; rk = Sheets("IndtastVagt").Cells(1000, "A").End(xlUp).Row</div><div>&nbsp; &nbsp; If rk &lt; 2 Then Exit Sub</div><div>&nbsp; &nbsp; Me.ListBox1.List = Sheets("IndtastVagt").Range("A2:N" &amp; rk).Value</div><div>&nbsp; &nbsp;&nbsp;</div><div>'Formater tal til tid</div><div>&nbsp; &nbsp; For j = ListBox1.ListCount - 1 To 0 Step -1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' Formater tal til tid</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 1) = Format(Me.ListBox1.List(j, 1), "hh:mm")&nbsp; &nbsp;' Kolonne 2 - Vagt Start</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 2) = Format(Me.ListBox1.List(j, 2), "hh:mm")&nbsp; &nbsp;' Kolonne 3 - 1. del slut</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 3) = Format(Me.ListBox1.List(j, 3), "hh:mm")&nbsp; &nbsp;' Kolonne 4 - 2. del start</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 4) = Format(Me.ListBox1.List(j, 4), "hh:mm")&nbsp; &nbsp;' Kolonne 5 - Vagt Slut</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 5) = Format(Me.ListBox1.List(j, 5), "hh:mm")&nbsp; &nbsp;' Kolonne 6 - Betalt pause</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 6) = Format(Me.ListBox1.List(j, 6), "hh:mm")&nbsp; &nbsp;' Kolonne 7 - Selvb. pause</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 7) = Format(Me.ListBox1.List(j, 7), "hh:mm")&nbsp; &nbsp;' Kolonne 8 - Eff. timer</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 10) = Format(Me.ListBox1.List(j, 10), "hh:mm") ' Kolonne 11 - Pause 1 start</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 11) = Format(Me.ListBox1.List(j, 11), "hh:mm") ' Kolonne 12 - Pause 1 slut</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 12) = Format(Me.ListBox1.List(j, 12), "hh:mm") ' Kolonne 13 - Pause 2 start</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Me.ListBox1.List(j, 13) = Format(Me.ListBox1.List(j, 13), "hh:mm") ' Kolonne 14 - Pause 2 slut</div><div>&nbsp; &nbsp; Next</div><div><br></div><div>'Hopper til vagt textboxen, klar til ny indtastning</div><div>&nbsp; &nbsp; Me.TextBox2.SetFocus</div><div>'Nulstiller markering af kopieringen</div><div>&nbsp; &nbsp; Application.CutCopyMode = False</div><div><br></div><div>End Sub</pre></td></tr></table></div>]]>
   </description>
   <pubDate>Wed, 16 Jan 2019 14:08:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18546.html#18546</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : Har du pr&#248;vet den klassiske, med...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18544.html#18544</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 15.Jan.2019 kl. 19:17<br /><br />Har du prøvet den klassiske, med at ligge disse linjer ind, som de allerførste linjer i din makro:<table width="99%"><tr><td><pre class="BBcode">ActiveSheet.DisplayPageBreaks = <font color="#0000FF">False<br>With</font> Application<br>&nbsp;&nbsp;&nbsp; .Cursor = xlWait<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></pre></td></tr></table>Og, så slutte din makro, med disse linjer, som de allersidste linjer i din makro:<table width="99%"><tr><td><pre class="BBcode"><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>&nbsp;&nbsp;&nbsp; .Cursor = xlDefault<br><font color="#0000FF">End With</font></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 15 Jan 2019 19:17:21 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18544.html#18544</guid>
  </item> 
  <item>
   <title><![CDATA[Kode kører langsomt pga. størrelsen : Hej Forum.Den her er vanskelig...]]></title>
   <link>https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18543.html#18543</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1125">Ib Hansen</a><br /><strong>Emne:</strong> 3756<br /><strong>Sendt:</strong> 15.Jan.2019 kl. 11:20<br /><br />Hej Forum.<div><br></div><div>Den her er vanskelig og jeg kan desværre ikke <a href="/topic662.html" target="_blank" rel="nofollow"></a><a href="/topic662.html" target="_blank" rel="nofollow"></a><a href="/topic662.html" target="_blank" rel="nofollow"></a><a href="/topic662.html" target="_blank" rel="nofollow"><a href="/topic662.html" target="_blank">uploade </a></a>arket, da det fylder alt for meget - Ca. 25 Mb.<br><div><br></div><div>Første linje på en fanen, består af 111 kolonner, med alm. Excel koder i de sidste ca. 100 af de 111.</div><div>De alm. Excel koder kan ikke undværes og bruges til beregninger.</div><div><br></div><div>- I de første 10 kolonner indsættes værdier på næste frie linje, vha. en Userform Textboxe.</div><div>- Herefter køres en kode for hver kolonne, der kopierer cellen oven over og de sidste af de 111 kolonner beregnes ud fra de 10 første kolonner.</div></div><div>- Herefter vises de 10 første kolonner i en Listbox.</div><div><br></div><div><u>Problem</u></div><div>Pga. den voldsomme kopiering og beregning, tager det umindelig lang tid, før Listboxen opdateres.</div><div>I den tid venter man bare på, at dén skal blive færdig, så en ny linje/vagt kan indtastes i Textboxene.</div><div><br></div><div><b>Er det muligt at speede den proces op ?</b></div><div><b>Måske en anden måde at kopierer de sidste 100 kolonner ?</b></div><div><br></div><div>Jeg ved godt det er svært at svare på, når man ikke kan se selve arket med koderne.</div><div>Men det her er min eneste mulighed, for at løse problemet&nbsp;<img src="https://forum.excel-regneark.dk/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" /><br><br>Her er en lille del af koden.<br><table width="99%"><tr><td><pre class="BBcode"><b><font color="#009900">'nrf = next free row</font></b></div><div>&nbsp; &nbsp; Dim nfr As Range</div><div><b><font color="#009900">'Finder den næste frie række</font></b></div><div>&nbsp; &nbsp; Set nrf = Worksheets("IndtastVagt").Range("A1000").End(xlUp).Offset(1, 0)</div><div><br></div><div><b><font color="#009900">'Indsætter data fra textboxene</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 0).Value = TextBox2.Value <b><font color="#009900">'................Vagt..............Kol 1</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 1).Value = TextBox4.Value <b><font color="#009900">'................Start tid.........Kol 2</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 2).Value = TextBox7.Value <b><font color="#009900">'................1. del slut.......Kol 3</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 3).Value = TextBox8.Value <b><font color="#009900">'................2. del start......Kol 4</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 4).Value = TextBox5.Value <b><font color="#009900">'................Slut tid..........Kol 5</font></b></div><div>&nbsp; &nbsp;&nbsp;</div><div><b><font color="#009900">'-----------------------------------------------'............Betalt pause......Kol 6</font></b></div><div><b><font color="#009900">' 5-6-7 = Kol 6-7-8 skal kopieres nedad i fanen '............Selvbetalt pause..Kol 7</font></b></div><div><b><font color="#009900">'-----------------------------------------------'............Eff timer.........Kol 8</font></b></div><div><br></div><div>&nbsp; &nbsp; nrf.Offset(0, 8).Value = TextBox3.Value <b><font color="#009900">'................By................Kol 9</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 9).Value = TextBox9.Value <b><font color="#009900">'................Km................Kol 10</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 10).Value = TextBox6.Value <b><font color="#009900">'...............Pause 1 start.....Kol 11</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 11).Value = TextBox10.Value <b><font color="#009900">'..............Pause 1 slut......Kol 12</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 12).Value = TextBox11.Value <b><font color="#009900">'..............Pause 2 start.....Kol 13</font></b></div><div>&nbsp; &nbsp; nrf.Offset(0, 13).Value = TextBox12.Value <b><font color="#009900">'..............Pause 2 slut......Kol 14</font></b></div><div><b><font color="#009900">&nbsp; &nbsp; '--------------------------------------------------------------------------------</font></b></div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("F1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 5).PasteSpecial xlPasteFormulas <b><font color="#009900">'............................Kol 6</font></b></div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("G1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 6).PasteSpecial xlPasteFormulas <b><font color="#009900">'............................Kol 7</font></b></div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Sheets("IndtastVagt").Range("H1").Copy</div><div>&nbsp; &nbsp; nrf.Offset(0, 7).PasteSpecial xlPasteFormulas <font color="#009900"><b>'............................Kol 8</b></font></div><div><b>&nbsp; &nbsp;&nbsp;</b><font color="#ff0000"><b>Osv - 111 kolonner i alt</b></font></pre></td></tr></table></div><div>Userformen ser således ud.</div><div><br></div><div><img src="uploads/1125/Indtast_vagt.jpg" height="523" width="800" border="0" /><br></div><div><br></div><div>På forhånd tak.</div><div><br></div><div>Mvh.</div><div>Ib</div><div><br></div><div id="sbi_camera_" style="width: 29px !imant; height: 27px !imant; top: 1431px !imant; left: 773px !imant; display: inline !imant;"></div>]]>
   </description>
   <pubDate>Tue, 15 Jan 2019 11:20:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/kode-krer-langsomt-pga-strrelsen_topic3756_post18543.html#18543</guid>
  </item> 
 </channel>
</rss>