<?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 : Indsæt billede automatisk problem</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Indsæt billede automatisk problem]]></description>
  <pubDate>Sat, 05 Dec 2026 14:18:35 +0000</pubDate>
  <lastBuildDate>Fri, 17 Jan 2014 11:06:18 +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=1507</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[Indsæt billede automatisk problem :  Det virker bare! L&#230;kkert!Kan...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede-automatisk-problem_topic1507_post7032.html#7032</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1042">Leifsandhøj</a><br /><strong>Emne:</strong> 1507<br /><strong>Sendt:</strong> 17.Jan.2014 kl. 11:06<br /><br />Det virker bare! Lækkert!<div>&nbsp;</div><div>Kan man så fortælle den at billedet skal skaleres ned til størrelsen på cellen, eller måske endda lidt mindre end cellen?</div><div>&nbsp;</div><div>Leif</div>]]>
   </description>
   <pubDate>Fri, 17 Jan 2014 11:06:18 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede-automatisk-problem_topic1507_post7032.html#7032</guid>
  </item> 
  <item>
   <title><![CDATA[Indsæt billede automatisk problem :  Hej Leif,Koden st&#229;r til at kigge...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede-automatisk-problem_topic1507_post7028.html#7028</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1">Allan</a><br /><strong>Emne:</strong> 1507<br /><strong>Sendt:</strong> 16.Jan.2014 kl. 19:44<br /><br /><p>Hej Leif,</p><p>Koden står til at kigge efter filnavn i kolonne A, så den kan ikke sætte et billede ind i cellen til venstre.</p><p><strong>Hvis du ændrer følgende</strong>&nbsp;<br>Public Const IndtastningsKolonneBogstav = "A"<br><strong>Til</strong><br>Public Const IndtastningsKolonneBogstav = "B"</p><p><strong>og</strong></p><p>For Each c In Ark1.Range(IndtastningsKolonneBogstav &amp; IndtastningsStartRaekke &amp; ":" &amp; IndtastningsKolonneBogstav &amp; IndtastningsSlutRaekke).Cells<br>&nbsp;&nbsp;&nbsp; InsertPictureInRange DefLocation &amp; c.Value &amp; DefExtention, c.Offset(100, 1)<br>Next c</p><p><strong>Skal ændres til:</strong></p><p>For Each c In Ark1.Range(IndtastningsKolonneBogstav &amp; IndtastningsStartRaekke &amp; ":" &amp; IndtastningsKolonneBogstav &amp; IndtastningsSlutRaekke).Cells<br>&nbsp;&nbsp;&nbsp; InsertPictureInRange DefLocation &amp; c.Value &amp; DefExtention, c.Offset(0, -1)<br>Next c</p><p>Hvis du nu&nbsp;skriver navnet på billedet i kolonne B og&nbsp;kører makroen 'Batch' så burde vil billedet blive sat ind i cellen til venstre for filnavnet.</p><p>//Allan</p>]]>
   </description>
   <pubDate>Thu, 16 Jan 2014 19:44:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede-automatisk-problem_topic1507_post7028.html#7028</guid>
  </item> 
  <item>
   <title><![CDATA[Indsæt billede automatisk problem :  Allan (Admin) besvarede i Juli...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede-automatisk-problem_topic1507_post7027.html#7027</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1042">Leifsandhøj</a><br /><strong>Emne:</strong> 1507<br /><strong>Sendt:</strong> 16.Jan.2014 kl. 14:14<br /><br />Allan (Admin) besvarede i Juli 2010 et spørgsmål omkring indsæt af billede:  https://forum.excel-regneark.dk/indstte-billeder-automatisk_topic53. - https://forum.excel-regneark.dk/indstte-billeder-automatisk_topic53.html</a><div></div><div></div>Mit problem går så ud på, at jeg ikke kan finde ud at at fortælle makroen at billedet skal i cellen til venstre for det indtastede. <div></div><div></div>Er der nogle der har et gyldent input?<div>&nbsp;</div><div>Makroen ser således ud:</div><div>&nbsp;</div><div>Public Const DefExtention = ".jpg"<br>Public Const DefLocation = "I:\VVS Foto\"<br>Public Const IndtastningsKolonneBogstav = "A"<br>Public Const IndtastningsKolonnenr = 1<br>Public Const IndtastningsStartRaekke = 2<br>Public Const IndtastningsSlutRaekke = 20</div><div>Sub Batch()<br>For Each c In Ark1.Range(IndtastningsKolonneBogstav &amp; IndtastningsStartRaekke &amp; ":" &amp; IndtastningsKolonneBogstav &amp; IndtastningsSlutRaekke).Cells<br>&nbsp;&nbsp;&nbsp; InsertPictureInRange DefLocation &amp; c.Value &amp; DefExtention, c.Offset(100, 1)<br>Next c<br>End Sub</div><div>Sub InsertPictureInRange(PictureFileName As String, TargetCells As Range)</div><div>Dim p As Object, t As Double, l As Double, w As Double, h As Double<br>&nbsp;&nbsp;&nbsp; If TypeName(ActiveSheet) &lt;&gt; "Worksheet" Then Exit Sub<br>&nbsp;&nbsp;&nbsp; If Dir(PictureFileName) = "" Then Exit Sub</div><div>&nbsp;&nbsp;&nbsp; Set p = ActiveSheet.Pictures.Insert(PictureFileName)</div><div>&nbsp;&nbsp;&nbsp; With TargetCells<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t = .Top<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l = .Left<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; w = .Offset(0, .Columns.Count).Left - .Left<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; h = .Offset(.Rows.Count, 0).Top - .Top<br>&nbsp;&nbsp;&nbsp; End With</div><div>&nbsp;&nbsp;&nbsp; With p<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Top = t<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Left = l<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = w<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Height = h<br>&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; Set p = Nothing<br>End Sub</div><div>&nbsp;</div><div>&nbsp;</div><div>Leif</div>]]>
   </description>
   <pubDate>Thu, 16 Jan 2014 14:14:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede-automatisk-problem_topic1507_post7027.html#7027</guid>
  </item> 
 </channel>
</rss>