<?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 problemer</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : VBA problemer]]></description>
  <pubDate>Sat, 05 Dec 2026 14:57:15 +0000</pubDate>
  <lastBuildDate>Fri, 17 Nov 2017 16:02:12 +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=3239</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 problemer : Yeps, det burde virke ]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15904.html#15904</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 17.Nov.2017 kl. 16:02<br /><br />Yeps, det burde virke <img src="https://forum.excel-regneark.dk/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br>]]>
   </description>
   <pubDate>Fri, 17 Nov 2017 16:02:12 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15904.html#15904</guid>
  </item> 
  <item>
   <title><![CDATA[VBA problemer : Ja, det ser da vist fint ud -...]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15898.html#15898</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=487">Kurt Kubik</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 16.Nov.2017 kl. 19:49<br /><br />Ja, det ser da vist fint ud - virker det ikke?]]>
   </description>
   <pubDate>Thu, 16 Nov 2017 19:49:07 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15898.html#15898</guid>
  </item> 
  <item>
   <title><![CDATA[VBA problemer : af uforklarlige &#229;rsager s&#229; har...]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15897.html#15897</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2053">krille15</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 16.Nov.2017 kl. 19:42<br /><br />af uforklarlige årsager så har jeg logget ind med et gammelt login som jeg havde... nå tilbage igen.<div><br></div><div><div>Private Sub Worksheet_Change(ByVal Target As Range)</div><div>&nbsp; &nbsp; If Not Intersect(Target, Range("D4")) Is Nothing Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono;">Cells.EntireRow.Hidden =</span><font color="#0000FF" style="font-family: &quot;Courier New&quot;, Courier, mono;"> False</font></div><pre ="BBcode" style="width: 844.703125px;"><font color="#0000FF">Select Case</font> Range("D4").Value<br>&nbsp;&nbsp;&nbsp; <font color="#0000FF">Case</font> 1:&nbsp;&nbsp; Range("36:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 2:&nbsp;&nbsp; Range("46:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 3:&nbsp;&nbsp; Range("56:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 4:&nbsp;&nbsp; Range("66:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 5:&nbsp;&nbsp; Range("76:85").EntireRow.Hidden = <font color="#0000FF">True<br>End Select</font></pre><div>&nbsp; &nbsp; End If</div><div>End Sub</div></div><div><br></div><div>Er det sådan ud mener Kurt</div><div><br></div><div>Mvh</div>]]>
   </description>
   <pubDate>Thu, 16 Nov 2017 19:42:57 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15897.html#15897</guid>
  </item> 
  <item>
   <title><![CDATA[VBA problemer : Hvorfor har du pludseligt skiftet...]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15896.html#15896</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=487">Kurt Kubik</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 16.Nov.2017 kl. 16:46<br /><br />Hvorfor har du pludseligt skiftet navn?<div><br></div><div>Placér denne kode i ark-modulet:</div><div><br></div><div><div>Private Sub Worksheet_Change(ByVal Target As Range)</div><div>&nbsp; &nbsp; If Not Intersect(Target, Range("D4")) Is Nothing Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'Placér din kode her...</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'Eller endnu bedre: Kør din sub herfra</div><div>&nbsp; &nbsp; End If</div><div>End Sub</div></div>]]>
   </description>
   <pubDate>Thu, 16 Nov 2017 16:46:53 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15896.html#15896</guid>
  </item> 
  <item>
   <title><![CDATA[VBA problemer : Hej igen,hvis den s&#229; skal kunne...]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15895.html#15895</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2079">Studerende</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 16.Nov.2017 kl. 14:51<br /><br />Hej igen,&nbsp;<div><br></div><div>hvis den så skal kunne "opdater" arket når man trykker en ny værdi i d4 hvordan gør man så det?</div><div><br></div><div>Mvh Kristoffer</div>]]>
   </description>
   <pubDate>Thu, 16 Nov 2017 14:51:49 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15895.html#15895</guid>
  </item> 
  <item>
   <title><![CDATA[VBA problemer : Det der ville jeg lave HELT anderledes!For...]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15884.html#15884</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 15.Nov.2017 kl. 17:53<br /><br />Det der ville jeg lave HELT anderledes!<br><br>For det første, så behøver du ikke en makro til hver uge, da du alligevel styrer det hele fra celle D4 af.<br>For det andet, så undlad kombinationen af vis/skjul - bare start med at vise det hele og så skjule de ønskede rækker.<br>For det tredje ville jeg slet ikke bruge et loop, med blot skjule rækkerne direkte.<br><br>Noget i denne stil:<table width="99%"><tr><td><pre class="BBcode">Cells.EntireRow.Hidden =<font color="#0000FF"> False<br>Select Case</font> Range("D4").Value<br>&nbsp;&nbsp;&nbsp; <font color="#0000FF">Case</font> 1:&nbsp;&nbsp; Range("36:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 2:&nbsp;&nbsp; Range("46:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 3:&nbsp;&nbsp; Range("56:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 4:&nbsp;&nbsp; Range("66:85").EntireRow.Hidden = <font color="#0000FF">True<br>&nbsp;&nbsp;&nbsp; Case</font> 5:&nbsp;&nbsp; Range("76:85").EntireRow.Hidden = <font color="#0000FF">True<br>End Select</font></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Wed, 15 Nov 2017 17:53:57 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15884.html#15884</guid>
  </item> 
  <item>
   <title><![CDATA[VBA problemer : Sub Uge1()  If D4 = 1 Then  For...]]></title>
   <link>https://forum.excel-regneark.dk/vba-problemer_topic3239_post15881.html#15881</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2053">krille15</a><br /><strong>Emne:</strong> 3239<br /><strong>Sendt:</strong> 15.Nov.2017 kl. 13:13<br /><br /><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge1()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 = 1 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 36 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">True</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge11()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 46 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">False</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge2()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 = 2 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 46 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">True</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge12()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 &gt; 2 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 56 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">False</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge3()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 = 3 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 56 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">True</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge13()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 &gt; 3 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 66 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">False</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge4()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 = 4 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 66 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">True</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge14()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 &gt; 4 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 76 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">False</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb1, 25, 147;">End<span style="color: #000000"> </span>Sub</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Sub</span> Uge5()</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">If</span> D4 = 5 <span style="color: #011993">Then</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">For</span> rep = 76 <span style="color: #011993">To</span> 85</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">&nbsp; &nbsp; Sheets("ark1").Rows(rep &amp; ":" &amp; rep).EntireRow.Hidden = <span style="color: #011993">True</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="color: #011993">Next</span> rep</p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><br></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">End Sub</p><div><br></div><div><br></div><div>Kan ikke helt forstå hvad det er jeg gør galt. Det er meningen af den skal kunne skjule de rækker baseret på om der står 1,2,3,4,5 hvor hvis der står 1 så skal den altså skjule fra række 36:85 og omvendt hvis der står 2 så skal den vise 36:45 igen men skjule fra 46:85 osv.&nbsp;</div><div><br></div><div>håber der er nogen der kan være behjælpelige :)&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 15 Nov 2017 13:13:26 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vba-problemer_topic3239_post15881.html#15881</guid>
  </item> 
 </channel>
</rss>