<?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 : loop problem</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : loop problem]]></description>
  <pubDate>Sat, 05 Dec 2026 13:04:00 +0000</pubDate>
  <lastBuildDate>Sun, 06 Jan 2013 18:52:52 +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=1020</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[loop problem : Velbekomme :-) ]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4836.html#4836</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 06.Jan.2013 kl. 18:52<br /><br />Velbekomme :-)<br>]]>
   </description>
   <pubDate>Sun, 06 Jan 2013 18:52:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4836.html#4836</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : super tak, Excelgaard, du fik...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4835.html#4835</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=741">simpson</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 06.Jan.2013 kl. 18:40<br /><br />super tak, Excelgaard, du fik mig til at kigge en ekstra gang fuldt igennem, og fandt fejlen :D]]>
   </description>
   <pubDate>Sun, 06 Jan 2013 18:40:09 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4835.html#4835</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : &amp;gt; Do Until liniedsa = 14 Hvis...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4826.html#4826</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 06.Jan.2013 kl. 10:04<br /><br />&gt; <font style=": rgb251, 251, 253;" face="sans-serif" size="2">Do Until liniedsa = 14</font><span style=": rgb251, 251, 253;"> <br><br></span>Hvis 'liniedsa' alligvel aldrig må blive mere end 14 kan du så ikke lave en afgrænset loop?<br><br>&nbsp;&nbsp;&nbsp; For liniedsa = 1 To 14<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Gør noget...<br>&nbsp;&nbsp;&nbsp; Next<br><br>Og, igen: Har du 'Option Explicit' sat til?<br>]]>
   </description>
   <pubDate>Sun, 06 Jan 2013 10:04:30 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4826.html#4826</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : jeg har lavet en module liste...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4825.html#4825</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=741">simpson</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 05.Jan.2013 kl. 20:57<br /><br />jeg har lavet en module liste for alle commandoer i dette proram den henter fra<div><br></div>]]>
   </description>
   <pubDate>Sat, 05 Jan 2013 20:57:15 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4825.html#4825</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : Hvor f&#229;r du variablen &amp;#039;liniedsa&amp;#039;...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4824.html#4824</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 05.Jan.2013 kl. 20:33<br /><br />Hvor får du variablen 'liniedsa' fra???<br><br>Jeg kan hverken se variablen blive 'Dim'et' eller tildelt en indledende værdi?<br><br>Har du sat 'Option Explicit'???<br>]]>
   </description>
   <pubDate>Sat, 05 Jan 2013 20:33:24 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4824.html#4824</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : det er det her loop der g&#229;r i...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4823.html#4823</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=741">simpson</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 05.Jan.2013 kl. 20:13<br /><br />det er det her loop der går i uendelighed<div><br></div><div><font face="sans-serif" size="2" style=": rgb251, 251, 253;">Do Until liniedsa = 14</font><span style=": rgb251, 251, 253;">&nbsp;</span><br style=": rgb251, 251, 253;"><font face="sans-serif" size="2" style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PF16</font><span style=": rgb251, 251, 253;">&nbsp;</span><br style=": rgb251, 251, 253;"><font face="sans-serif" size="2" style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uche = Læs(liniedsa, 54, liniedsa, 59)</font><span style=": rgb251, 251, 253;">&nbsp;</span><br style=": rgb251, 251, 253;"><font face="sans-serif" size="2" style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uchep = Læs(liniedsa, 69, liniedsa, 75)</font><span style=": rgb251, 251, 253;">&nbsp;</span><br style=": rgb251, 251, 253;"><font face="sans-serif" size="2" style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uches = Læs(liniedsa, 76, liniedsa, 79)</font><span style=": rgb251, 251, 253;">&nbsp;</span><br style=": rgb251, 251, 253;"><font face="sans-serif" size="2" style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; liniedsa = liniedsa + 1</font><span style=": rgb251, 251, 253;">&nbsp;</span><br style=": rgb251, 251, 253;"><font face="sans-serif" size="2" style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Loop</font><span style=": rgb251, 251, 253;">&nbsp;</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div>Det jeg vil have den til at gøre er at, først lave en linie med alt det første data, så kører den</div><div>denne kommando og for så resten af data'en. Men denne ekstra data har op til 5 muligheder.</div><div>Alt sammen på linjer under hinanden.</div><div><br></div><div>Så ville gerne have den start data + ekstra data mulighed 1</div><div>Så en anden linie med start data + ekstra data mulighed 2 osv.</div><div><br></div><div>Nogen ide til hvordan jeg kan få den til dette, driller mig lidt.</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Sat, 05 Jan 2013 20:13:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4823.html#4823</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : Nu skriver du ikke, hvilket af...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4821.html#4821</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 05.Jan.2013 kl. 18:47<br /><br />Nu skriver du ikke, hvilket af dine loops, der går i uendeligt, men et par ting du kan overveje:<br><br>Et loop går i 'uendeligt', hvis kriteriet for at hoppe ud af loopet aldrig bliver opfyldt - altså skal du kigge på dine data, om de nogensinde opfylder kriteriet?<br><br>Dernæst kigger dine loops efter tomme celler, hvilket altid er farligt!<br>En celle behøver ikke være tom, blot fordi den ser tom ud...<br>Hvis, hvis, f.eks. cellen indeholder et mellemrum?<br>Cellen ser tom ud, men indeholder rent faktisk noget - et 'blankt' mellemrum.<br>I dette tilfælde bør man teste på:&nbsp; Replace(Celle.Value," ","") = ""<br>Altså udskifte mellemrum med ingenting.<br><br>Til sidst ser det ud som om du benytter nogle UDFere i dine loops?<br>Måske ligger fejlen i disse?<br>]]>
   </description>
   <pubDate>Sat, 05 Jan 2013 18:47:59 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4821.html#4821</guid>
  </item> 
  <item>
   <title><![CDATA[loop problem : Hej,Jeg arbejder p&#229; en makro som...]]></title>
   <link>https://forum.excel-regneark.dk/loop-problem_topic1020_post4817.html#4817</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=741">simpson</a><br /><strong>Emne:</strong> 1020<br /><strong>Sendt:</strong> 05.Jan.2013 kl. 17:18<br /><br />Hej,<div><br></div><div>Jeg arbejder på en makro som kan tage data fra et dos baseret program jeg har.</div><div>Men det driller mig lidt med et loop.</div><div><br></div><div>Ville gerne have at den tog dataen fra alle rækkerne som kommer i række jeg specificere.</div><div><br></div><div>Altså tage alt det tidligere info den tog og så det ekstra for hver linje der kommer.</div><div><br></div><div>Er lidt svært at forklarer.</div><div><br></div><div>Men kan I se hvorfor denne går i uendeligt loop.</div><div><br></div><div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div><font face="sans-serif" size="2">Private Sub CommandButton1_Click()</font><br><font face="sans-serif" size="2">Tilslut</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">Dim akt As String</font><br><font face="sans-serif" size="2">Dim afd As String</font><br><font face="sans-serif" size="2">Dim række As Integer</font><br><font face="sans-serif" size="2">Dim linieexcel As Integer</font><br><font face="sans-serif" size="2">Dim varnr As String</font><br><br><font face="sans-serif" size="2">Range("A6:G9999").Select</font><br><font face="sans-serif" size="2">Selection.ClearContents</font><br><font face="sans-serif" size="2">ActiveWindow.SmallScroll Down:=-9</font><br><font face="sans-serif" size="2">Range("B1").Select</font><br><br><font face="sans-serif" size="2">Application.Calculation = xlCalculationManual</font><br><font face="sans-serif" size="2">Application.ScreenUpdating = False</font><br><br><br><br><font face="sans-serif" size="2">linieexcel = 2</font><br><font face="sans-serif" size="2">række = 1</font><br><br><font face="sans-serif" size="2">&nbsp; &nbsp; If Tilslut_OK = True Then</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; Kontroller_ONLINE</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; If ONLINE_OK= True Then</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;On Error Resume Next</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Vælg_dia ("00200")</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Vælg_dia ("35812")</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; afd = InputBox("Indtastafdelling med 3 cifre - dvs. 0xx")</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; Forr = InputBox("Indtastforretningsnummer med 5 cifre - dvs. 022xx2")</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; uge = Ark6.Cells(Date)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; varnr =Ark6.Cells(linieexcel, 1).Value</font><br><font face="sans-serif" size="2">&nbsp;</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; Skriv 23, 32, Forr</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; Skriv 23, 38, afd</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; Do Until Ark6.Cells(linieexcel,1).Value = ""</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; linieexcel = linieexcel+ 1</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; Loop</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; Skriv 23, 9, varnr</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; Enter</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; liniedsa = liniedsa + 1</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; nprice = Læs(11, 29, 11, 34)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Weight = Læs(5, 74, 5, 76)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; unit = Læs(6, 80, 6, 80)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; beskriv = Læs(4, 37, 4, 68)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; liniedsa = 11</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; Do Until liniedsa = 14</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PF16</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uche = Læs(liniedsa, 54, liniedsa,59)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uchep = Læs(liniedsa, 69, liniedsa,75)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uches = Læs(liniedsa, 76, liniedsa,79)</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; liniedsa = liniedsa + 1</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; Loop</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; Do Until varnr = ""</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 1).Value = varnr</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 2).Value = beskriv</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 3).Value = nprice</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 4).Value = uche</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 5).Value = uches</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 6).Value = uchep</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 7).Value = Weight</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Ark12.Cells(linieexcel, 8).Value = unit</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; </font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; linieexcel = linieexcel + 1</font><br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; Loop</font><br><br><font face="sans-serif" size="2">Application.Calculation = xlCalculationAutomatic</font><br><font face="sans-serif" size="2">Application.ScreenUpdating = True</font><br><br><br><br><font face="sans-serif" size="2">MsgBox ("Data er nu hentet - huskat opdatere pivottabellen")</font><br><br><font face="sans-serif" size="2">End If</font><br><br><font face="sans-serif" size="2">End If</font><br><br><font face="sans-serif" size="2">End Sub</font>&nbsp;<br></div></blockquote></div><div><br></div><div>Og ellers hvordan jeg tager range af noget data den tager fra et andet program</div><div><br></div><div>Håber i kan hjælpe er kørt lidt død i den &nbsp;</div>]]>
   </description>
   <pubDate>Sat, 05 Jan 2013 17:18:42 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/loop-problem_topic1020_post4817.html#4817</guid>
  </item> 
 </channel>
</rss>