<?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 : Array Loop i loop</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Array Loop i loop]]></description>
  <pubDate>Sat, 05 Dec 2026 18:12:12 +0000</pubDate>
  <lastBuildDate>Thu, 14 Jul 2016 14:00:36 +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=2637</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[Array Loop i loop :  Opgaven er l&#248;st med endnu et...]]></title>
   <link>https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12551.html#12551</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1659">Blichfeldt</a><br /><strong>Emne:</strong> 2637<br /><strong>Sendt:</strong> 14.Jul.2016 kl. 14:00<br /><br />Opgaven er løst med endnu et redesign.<div>Det er ikke så pænt men det virker</div>]]>
   </description>
   <pubDate>Thu, 14 Jul 2016 14:00:36 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12551.html#12551</guid>
  </item> 
  <item>
   <title><![CDATA[Array Loop i loop :  S&#229; har jeg pr&#248;vet en anden vej,...]]></title>
   <link>https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12499.html#12499</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1659">Blichfeldt</a><br /><strong>Emne:</strong> 2637<br /><strong>Sendt:</strong> 11.Jul.2016 kl. 15:07<br /><br />Så har jeg prøvet en anden vej, og der er desværre også forhindringer.<div>Og nej, jeg er ikke en haj.</div><div>Jeg har lært en masse, men endnu ikke fundet de vise sten.</div><div>&nbsp;</div><div>Håber en af jer kan vise mig vejen.</div><div>&nbsp;</div><div>Her er mit nye tiltag.</div><div>&nbsp;</div><div>Sub Script_Generate_Add_Data()<br>Dim MitArray(1 To 10000) As Variant<br>Dim iCount As Integer<br>Dim j As Integer</div><div>' Copy IP range x times in next free cell, based on value sheet subnet cell AB5</div><div><br>&nbsp;'Jeg vil gerne indsætte en reference Generate_Range!f1<br>&nbsp;'Start referencen vil være denne placering Generate_Range!f1<br>&nbsp;'Denne reference skal så tælle 1 op per i<br>&nbsp;'Eks<br>&nbsp;'Generate_Range!f1<br>&nbsp;'Generate_Range!f2<br>&nbsp;'Generate_Range!f3</div><div>&nbsp;<br>Sheets("SCRIPTFILE").Select<br>Range("G1").Select</div><div>&nbsp;</div><div>' Denne del virker ikke :-(</div><div>For iCount = 1 To Sheets("Count").Range("AB5").Value<br>&nbsp;&nbsp; MitArray(iCount) = Generate_Range!F &amp; iCount + 1</div><div>&nbsp;</div><div>&nbsp;</div><div>' Denne del virker :-)<br>' Denne del indsætter Generate_Range!f1 12 gange<br>For j = 1 To 12</div><div>ActiveSheet.Paste<br>ActiveCell.Offset(1, 0).Select<br>Next j</div><div>ActiveCell.Offset(2, 0).Select<br>Next iCount</div><div>End Sub</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 11 Jul 2016 15:07:13 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12499.html#12499</guid>
  </item> 
  <item>
   <title><![CDATA[Array Loop i loop :  12&amp;#039;er l&#248;kken er j, og hver...]]></title>
   <link>https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12491.html#12491</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1659">Blichfeldt</a><br /><strong>Emne:</strong> 2637<br /><strong>Sendt:</strong> 10.Jul.2016 kl. 20:54<br /><br />12'er løkken er j, og hver gang i tæller 1 op, så tælles $F$1 1 op]]>
   </description>
   <pubDate>Sun, 10 Jul 2016 20:54:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12491.html#12491</guid>
  </item> 
  <item>
   <title><![CDATA[Array Loop i loop :  Lidt opdatering.Jeg er kommet...]]></title>
   <link>https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12490.html#12490</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1659">Blichfeldt</a><br /><strong>Emne:</strong> 2637<br /><strong>Sendt:</strong> 10.Jul.2016 kl. 20:52<br /><br />Lidt opdatering.<div>&nbsp;</div><div>Jeg er kommet lidt videre, bla. grundet en design ændring.</div><div>&nbsp;</div><div>Følgende løkke virker, men ikke efter hensigten.</div><div>Jeg vil gerne have den til at gentage en løkke 12 gange, og den ene løkke vil jeg gerne have gentaget x gange, men hele tiden på et ny område.</div><div>Og data hver gang en 12'er løkke startes skal $f$1 tælle 1 op.</div><div>Sub ChangeRowData()</div><div>Dim i As Variant<br>Dim j As Variant</div><div><br>&nbsp;Sheets("SCRIPTFILE").Select<br>&nbsp; Range("A1").Select<br>&nbsp; <br>&nbsp;' For i = 1 To Sheets("count").Range("AB4").Value<br>&nbsp;</div><div><br>&nbsp; For j = 1 To 12<br>&nbsp;&nbsp;&nbsp; ActiveCell.Replace What:="$F$1", Replacement:="$F$1", LookAt:=xlPart, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReplaceFormat:=False<br>&nbsp;&nbsp;&nbsp; Cells.FindNext(After:=ActiveCell).Activate<br>&nbsp;Next j</div><div>&nbsp; <br>&nbsp; For j = 1 To 12<br>&nbsp;&nbsp;&nbsp; ActiveCell.Replace What:="$F$1", Replacement:="$F$2", LookAt:=xlPart, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReplaceFormat:=False<br>&nbsp;&nbsp; Cells.FindNext(After:=ActiveCell).Activate<br>Next j</div><div><br>For j = 1 To 12<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ActiveCell.Replace What:="$F$1", Replacement:="$F$3", LookAt:=xlPart, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReplaceFormat:=False<br>&nbsp; Cells.FindNext(After:=ActiveCell).Activate<br>&nbsp;Next j<br>&nbsp;&nbsp; <br>&nbsp; For j = 1 To 12<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ActiveCell.Replace What:="$F$1", Replacement:="$F$4", LookAt:=xlPart, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReplaceFormat:=False<br>&nbsp;&nbsp; Cells.FindNext(After:=ActiveCell).Activate<br>&nbsp;Next j<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'osv op til i<br>&nbsp; <br>End Sub</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Sun, 10 Jul 2016 20:52:55 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12490.html#12490</guid>
  </item> 
  <item>
   <title><![CDATA[Array Loop i loop :  Hej ForumM&#229;ske en af jer kan...]]></title>
   <link>https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12475.html#12475</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1659">Blichfeldt</a><br /><strong>Emne:</strong> 2637<br /><strong>Sendt:</strong> 06.Jul.2016 kl. 21:20<br /><br />Hej Forum<div>&nbsp;</div><div>Måske en af jer kan hjælpe lidt.</div><div>Jeg prøver at lave et loop i et loop i et array.</div><div>Og nej, jeg er ikke haj til arrays</div><div>&nbsp;</div><div>Det indsatte prøver at beskrive hvad jeg vil opnå.</div><div>Håber en af jer andre har en god ide.</div><div>-----------</div><div>Sub Sub_Test()</div><div>Dim MitArray(1 To 10000, 1 To 11) As integer<br>Dim i As integer</div><div><br>if Range(A1)=26 then</div><div>For i = 1 To Sheets("ark1").Range("AB5").Value</div><div>' loop</div><div>&nbsp;&nbsp;&nbsp; Range(B1)=0<br>&nbsp;&nbsp;&nbsp; Range(B2)=0<br>&nbsp;&nbsp;&nbsp; Range(B3)=0<br>&nbsp;&nbsp;&nbsp; Range(B4)=0</div><div>&nbsp;&nbsp;&nbsp; Range(B5)=1<br>&nbsp;&nbsp;&nbsp; Range(B6)=1<br>&nbsp;&nbsp;&nbsp; Range(B7)=1<br>&nbsp;&nbsp;&nbsp; Range(B8)=1</div><div>&nbsp;&nbsp;&nbsp; Range(B9)=2<br>&nbsp;&nbsp;&nbsp; Range(B10)=2<br>&nbsp;&nbsp;&nbsp; Range(B11)=2<br>&nbsp;&nbsp;&nbsp; Range(B12)=2</div><div>&nbsp;&nbsp;&nbsp; OSV til slut jvf i</div><div><br>elseif Range(A1)=26 then</div><div>' loop</div><div>&nbsp;&nbsp;&nbsp; Range(B1)=0<br>&nbsp;&nbsp;&nbsp; Range(B2)=0</div><div>&nbsp;&nbsp;&nbsp; Range(B3)=1<br>&nbsp;&nbsp;&nbsp; Range(B4)=1</div><div>&nbsp;&nbsp;&nbsp; Range(B5)=2<br>&nbsp;&nbsp;&nbsp; Range(B6)=2</div><div>&nbsp;&nbsp;&nbsp; Range(B7)=3<br>&nbsp;&nbsp;&nbsp; Range(B8)=3</div><div>&nbsp;&nbsp;&nbsp; OSV til slut jvf i</div><div>&nbsp;</div><div>elseif Range(A1)=24 then</div><div>&nbsp;&nbsp;&nbsp; Range(B1)=0<br>&nbsp;&nbsp;&nbsp; Range(B2)=1<br>&nbsp;&nbsp;&nbsp; Range(B3)=2<br>&nbsp;&nbsp;&nbsp; Range(B4)=3</div><div>&nbsp;&nbsp;&nbsp; OSV til slut jvf i</div><div>&nbsp;</div><div>elseif Range(A1)=23 then</div><div>&nbsp;&nbsp;&nbsp; Range(B1)=0<br>&nbsp;&nbsp;&nbsp; Range(B2)=2<br>&nbsp;&nbsp;&nbsp; Range(B3)=4<br>&nbsp;&nbsp;&nbsp; Range(B4)=6</div><div>&nbsp;&nbsp;&nbsp; OSV til slut jvf i</div><div>end if</div><div>end sub</div>]]>
   </description>
   <pubDate>Wed, 06 Jul 2016 21:20:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/array-loop-i-loop_topic2637_post12475.html#12475</guid>
  </item> 
 </channel>
</rss>