<?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 : Søg og kopi&#039;er specifik tekst/værdi</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Søg og kopi&#039;er specifik tekst/værdi]]></description>
  <pubDate>Sat, 05 Dec 2026 16:36:28 +0000</pubDate>
  <lastBuildDate>Tue, 15 Oct 2013 15:11:58 +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=1402</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[Søg og kopi&#039;er specifik tekst/værdi : Hej Alle,Jeg har tidligere haft...]]></title>
   <link>https://forum.excel-regneark.dk/sg-og-kopier-specifik-tekst-vrdi_topic1402_post6541.html#6541</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=938">Loaduce</a><br /><strong>Emne:</strong> 1402<br /><strong>Sendt:</strong> 15.Okt.2013 kl. 15:11<br /><br /><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Hej Alle,</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><i>Jeg har tidligere haft held til at lave en interval-søgemaskine (Med lidt hjælp): Den fungere således at man indtaster et punkt (tal-værdi) Så finder Makrone alle de strækninger punktet måtte ligge imellem.&nbsp;</i></span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Nu vil jeg så gerne have en søge maskine der går ind og finder en specifik tekst eller tal-værdi. Hvor efter den kopieres med hele tens række, sådan at man kan danne sig et overblik, hvis nu der er flere af den samme tekst forskellige steder i arket.</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Neden for ses min gamle interval-søgemaskine.</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><b>Håber på lidt indspark. På forhånd tak.</b></span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Sub Opdater4()</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">rk = 10 ' Løsning hvor du selv ændrer i koden hvor der startes</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Range("AP6:DD1000").Clear ' Tømmer intervalkopier før de nye skrives</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">x = Range("AP4"):&nbsp; stk = Cells(65536, "Z").End(xlUp).Row</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">For Each c In Range("AC10:AC" &amp; stk)</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">If x &gt;= c And x &lt;= c.Offset(0, 1) Then</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Range("A" &amp; c.Row &amp; ":AM" &amp; c.Row).Copy Cells(rk, "AP")</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Range("AP" &amp; rk &amp; ":BD" &amp; rk).Interior.ColorIndex = 35 ' blå baggrund</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">End If</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">If x &lt;= c And x &gt;= c.Offset(0, 1) Then</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Range("A" &amp; c.Row &amp; ":AM" &amp; c.Row).Copy Cells(rk, "AP")</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Range("AP" &amp; rk &amp; ":BD" &amp; rk).Interior.ColorIndex = 35 ' blå baggrund</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">End If</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">rk = Cells(65536, "AQ").End(xlUp).Row + 1</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">If rk &lt; 10 Then rk = 10</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">Next</span><br style="margin: 0px; color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;"><span style="color: rgb65, 65, 65; font-family: Arial; line-height: normal; : rgb203, 203, 203;">End Sub</span>]]>
   </description>
   <pubDate>Tue, 15 Oct 2013 15:11:58 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/sg-og-kopier-specifik-tekst-vrdi_topic1402_post6541.html#6541</guid>
  </item> 
 </channel>
</rss>