<?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 : Idsætning af linje med Formel fra ovenstående..</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Idsætning af linje med Formel fra ovenstående..]]></description>
  <pubDate>Sat, 05 Dec 2026 13:54:20 +0000</pubDate>
  <lastBuildDate>Fri, 26 Mar 2021 08:21:29 +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=4503</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[Idsætning af linje med Formel fra ovenstående.. : her er l&#248;sningen ....Sub Tilf&#248;...]]></title>
   <link>https://forum.excel-regneark.dk/idstning-af-linje-med-formel-fra-ovenstaende_topic4503_post22429.html#22429</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2803">Tor4Every1</a><br /><strong>Emne:</strong> 4503<br /><strong>Sendt:</strong> 26.Mar.2021 kl. 08:21<br /><br /><div>her er løsningen ....&nbsp;</div><div><br></div><div><br></div><div>Sub Tilføj_linje_tilbud111()</div><div>'Opretter en ny linje til sælger på arket Tilbud.</div><div>'MGB 26.03.2021</div><div><br></div><div><br></div><div>Dim myInput As Variant</div><div>Dim rækkenummer As Integer</div><div><br></div><div>myInput = InputBox("Indtast rækkenummer for, hvor ny linje skal være f.eks. '79'." &amp; vbNewLine &amp; vbNewLine &amp; "Min. 4 og maks. 666.", "Tilføj ny linje")</div><div><br></div><div>&nbsp; &nbsp; 'Tjekker om input er et tal.</div><div>&nbsp; &nbsp; If Not IsNumeric(myInput) Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer. Prøv evt. igen."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; Else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; rækkenummer = CInt(myInput)</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'Tjekker om input er et tal i det rigtige interval.</div><div>&nbsp; &nbsp; If Not rækkenummer = 666 And rækkenummer &lt; 4 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer i intervallet 4-666. Prøv evt. igen."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div><br></div><div>&nbsp; &nbsp; 'Tjekker om input er et tal i det rigtige interval.</div><div>&nbsp; &nbsp; If Not rækkenummer = 666 And rækkenummer &gt; 666 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer i intervallet 4-666. Prøv evt. igen."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Rows(rækkenummer).Select</div><div>&nbsp; &nbsp; Selection.Copy</div><div>&nbsp; &nbsp; Selection.Insert Shift:=xlDown</div><div><br></div><div>Range(Cells(rækkenummer, 1), Cells(rækkenummer, 3)).Select</div><div>Selection.Clear</div><div><br></div><div>Range(Cells(rækkenummer, 8), Cells(rækkenummer, 9)).Select</div><div>Selection.Clear</div><div><br></div><div>End Sub</div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 26 Mar 2021 08:21:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/idstning-af-linje-med-formel-fra-ovenstaende_topic4503_post22429.html#22429</guid>
  </item> 
  <item>
   <title><![CDATA[Idsætning af linje med Formel fra ovenstående.. : var lige n&#248;d til at &#230;ndre den...]]></title>
   <link>https://forum.excel-regneark.dk/idstning-af-linje-med-formel-fra-ovenstaende_topic4503_post22428.html#22428</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2803">Tor4Every1</a><br /><strong>Emne:</strong> 4503<br /><strong>Sendt:</strong> 26.Mar.2021 kl. 07:16<br /><br />var lige nød til at ændre den lidt, så den virkede :)&nbsp;<div><br></div><div><div><font color="#0033cc">Sub Tilføj_linje_tilbud()</font></div><div><font color="#0033cc">'Opretter en ny linje til sælger på arket Tilbud.</font></div><div><font color="#0033cc">'MGB 26.03.2021</font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc">Dim myInput As Variant</font></div><div><font color="#0033cc">Dim rækkenummer As Integer</font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc">myInput = InputBox("Indtast rækkenummer for, hvor ny linje skal være f.eks. '79'." &amp; vbNewLine &amp; vbNewLine &amp; "Min. 4 og maks. 666.", "Tilføj ny linje")</font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc">&nbsp; &nbsp; 'Tjekker om input er et tal.</font></div><div><font color="#0033cc">&nbsp; &nbsp; If Not IsNumeric(myInput) Then</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer. Prøv evt. igen."</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</font></div><div><font color="#0033cc">&nbsp; &nbsp; Else</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; rækkenummer = CInt(myInput)</font></div><div><font color="#0033cc">&nbsp; &nbsp; End If</font></div><div><font color="#0033cc">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#0033cc">&nbsp; &nbsp; 'Tjekker om input er et tal i det rigtige interval.</font></div><div><font color="#0033cc">&nbsp; &nbsp; If Not rækkenummer = 666 And rækkenummer &lt; 4 Then</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer i intervallet 4-666. Prøv evt. igen."</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</font></div><div><font color="#0033cc">&nbsp; &nbsp; End If</font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc">&nbsp; &nbsp; 'Tjekker om input er et tal i det rigtige interval.</font></div><div><font color="#0033cc">&nbsp; &nbsp; If Not rækkenummer = 666 And rækkenummer &gt; 666 Then</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer i intervallet 4-666. Prøv evt. igen."</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</font></div><div><font color="#0033cc">&nbsp; &nbsp; End If</font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc">&nbsp; &nbsp; 'Tjekker om input er ud for 'Emne'</font></div><div><font color="#0033cc">&nbsp; &nbsp; If Cells(rækkenummer, 2) = "Emne" Or Sheets("Tilbud").Rows(rækkenummer).RowHeight = 15.75 Then</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du kan ikke indsætte en linje ud for 'Emne' eller overskrift. Prøv evt. igen."</font></div><div><font color="#0033cc">&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</font></div><div><font color="#0033cc">&nbsp; &nbsp; End If</font></div><div><font color="#0033cc">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#0033cc">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#0033cc">&nbsp; &nbsp; Rows(rækkenummer).Select</font></div><div><font color="#0033cc">&nbsp; &nbsp; Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove</font></div><div><font color="#0033cc">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#0033cc"><br></font></div><div><font color="#0033cc">End Sub</font></div><div><br></div></div>]]>
   </description>
   <pubDate>Fri, 26 Mar 2021 07:16:25 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/idstning-af-linje-med-formel-fra-ovenstaende_topic4503_post22428.html#22428</guid>
  </item> 
  <item>
   <title><![CDATA[Idsætning af linje med Formel fra ovenstående.. : Hej Alle,Jeg er igang med at lave...]]></title>
   <link>https://forum.excel-regneark.dk/idstning-af-linje-med-formel-fra-ovenstaende_topic4503_post22412.html#22412</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2803">Tor4Every1</a><br /><strong>Emne:</strong> 4503<br /><strong>Sendt:</strong> 25.Mar.2021 kl. 12:58<br /><br />Hej Alle,&nbsp;&nbsp;<div><br></div><div>Jeg er igang med at lave en kode til at kunne indsætte en række med hjælp fra en box, hvor man trykker hvilket række nummer det skal indsætte en ny række i ...&nbsp; dette skal helst gøres med formlen fra under eller oven af ..&nbsp; så den husker alle formler hver gang..&nbsp;&nbsp;</div><div><br></div><div><div><font color="#3333ff">Sub Tilføj_linje_tilbud()</font></div><div><font color="#3333ff">'Opretter en ny linje til sælger på arket Tømrer.</font></div><div><font color="#3333ff">'MGB oprettet den 24.03.2021</font></div><div><font color="#3333ff"><br></font></div><div><font color="#3333ff">Dim myInput As Variant</font></div><div><font color="#3333ff">Dim rækkenummer As Integer</font></div><div><font color="#3333ff"><br></font></div><div><font color="#3333ff">myInput = InputBox("Indtast rækkenummer for, hvor ny linje skal være f.eks. '79'." &amp; vbNewLine &amp; vbNewLine &amp; "Min. 4 og maks. 365.", "Tilføj ny linje")</font></div><div><font color="#3333ff"><br></font></div><div><font color="#3333ff">&nbsp; &nbsp; 'Tjekker om input er et tal.</font></div><div><font color="#3333ff">&nbsp; &nbsp; If Not IsNumeric(myInput) Then</font></div><div><font color="#3333ff">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer. Prøv evt. igen."</font></div><div><font color="#3333ff">&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</font></div><div><font color="#3333ff">&nbsp; &nbsp; Else</font></div><div><font color="#3333ff">&nbsp; &nbsp; &nbsp; &nbsp; rækkenummer = CInt(myInput)</font></div><div><font color="#3333ff">&nbsp; &nbsp; End If</font></div><div><font color="#3333ff">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#3333ff">&nbsp; &nbsp; 'Tjekker om input er et tal i det rigtige interval.</font></div><div><font color="#3333ff">&nbsp; &nbsp; If Not rækkenummer &lt;= 365 And rækkenummer &gt; 36 Then</font></div><div><font color="#3333ff">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "Fejl: Du skal indtaste et rækkenummer i intervallet 4-365. Prøv evt. igen."</font></div><div><font color="#3333ff">&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</font></div><div><font color="#3333ff">&nbsp; &nbsp; End If</font></div><div><font color="#3333ff"><br></font></div><div><font color="#3333ff">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#3333ff">&nbsp; &nbsp;&nbsp;</font></div><div><font color="#3333ff">&nbsp; &nbsp; Rows(rækkenummer).Select</font></div><div><font color="#3333ff">&nbsp; &nbsp; Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove</font></div></div><div><br></div><div><br></div><div>Det hele gør den her,,&nbsp; dog kan jeg ikke få den til at autofill&nbsp; fra linjen ...&nbsp; kan nogen hjælpe med dette sikkert simple problem ?&nbsp;</div><div><br></div><div><br></div><div>På forhånd tak..&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 25 Mar 2021 12:58:56 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/idstning-af-linje-med-formel-fra-ovenstaende_topic4503_post22412.html#22412</guid>
  </item> 
 </channel>
</rss>