<?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</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]]></description>
  <pubDate>Sat, 05 Dec 2026 06:16:17 +0000</pubDate>
  <lastBuildDate>Mon, 10 Sep 2012 07:31:35 +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=877</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 : Hej Allan - super jeg tester lige...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4307.html#4307</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=183">kbno</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 10.Sep.2012 kl. 07:31<br /><br />Hej Allan - super jeg tester lige i løbet af dagen. <img src="https://forum.excel-regneark.dk/smileys/smiley20.gif" border="0" alt="Thumbs Up" title="Thumbs Up" /><br><br><br>]]>
   </description>
   <pubDate>Mon, 10 Sep 2012 07:31:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4307.html#4307</guid>
  </item> 
  <item>
   <title><![CDATA[indsæt billede :      Hej igen,Det var straks...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4305.html#4305</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1">Allan</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 09.Sep.2012 kl. 00:38<br /><br />Hej igen,<div>&nbsp;</div><div>Det var straks værre.</div><div>Det er muligt, men så vil koden ikke være kompatibel med tidligere versioner end 2007...</div><div>&nbsp;</div><div>Til eftertanke:</div><div>Hvis&nbsp;man indsætter billedet normalt i Excel, vil billedet bliver gemt i filen, men hvis&nbsp;man optager en makro hvor&nbsp;man gør det, linkes der kun til billedet. Det kan man da kalde en bug <img src="https://forum.excel-regneark.dk/smileys/smiley4.gif" height="17" width="17" border="0" alt="Big smile" title="Big smile" /></div><div>&nbsp;</div><div>Man kan dog lave et lille trick -&nbsp;som efter koden har sat billedet ind -&nbsp;kopierer billedet og sætter det ind igen.</div><div>Den tror jeg virker i alle versioner.</div><div>&nbsp;</div><div><font color="#0000cc">Private Const Hoejde = "255" 'Hvis højde skal tilpasses cellens højde, ændres den til ""<br>Private Const Bredde = "465" 'Hvis bredde skal tilpasses celles højde, ændres den til ""<br>Private Const Placering = "B18" 'Hvis billedes skal være i aktive celle, ændres den til ""</font></div><div><font color="#0000cc">Private Sub CommandButton1_Click()<br>On Error GoTo Fejl<br>Application.ScreenUpdating = False</font></div><div><font color="#0000cc">ActCell = ActiveCell.Address<br>If Bredde = "" Then ActCellWidth = ActiveCell.Width<br>If Hoejde = "" Then ActCellHeigth = ActiveCell.Height</font></div><div><font color="#0000cc">If Placering &lt;&gt; "" Then Range(Placering).Select</font></div><div><font color="#0000cc">ActiveSheet.Pictures.Insert(Application.GetOpenFilename("Alle filer,*.*")).Select<br>Selection.ShapeRange.LockAspectRatio = msoFalse</font></div><div><font color="#0000cc">If Hoejde = "" Then<br>&nbsp;&nbsp;&nbsp; Selection.Height = ActCellHeigth<br>Else<br>&nbsp;&nbsp;&nbsp; Selection.Height = Hoejde<br>End If<br>If Bredde = "" Then<br>&nbsp;&nbsp;&nbsp; Selection.Width = ActCellWidth<br>Else<br>&nbsp;&nbsp;&nbsp; Selection.Width = Bredde<br>End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>Selection.Top = ActiveCell.Top<br>Selection.Left = ActiveCell.Left<br>Selection.Placement = xlMoveAndSize</font></div><div><font color="#0000cc">Selection.CopyPicture xlScreen, xlBitmap<br>Selection.Delete<br>ActiveSheet.Paste</font></div><div><font color="#0000cc">Range(ActCell).Select<br>Fejl:<br>Application.CutCopyMode = False<br>Application.ScreenUpdating = True<br>End Sub</font></div>]]>
   </description>
   <pubDate>Sun, 09 Sep 2012 00:38:00 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4305.html#4305</guid>
  </item> 
  <item>
   <title><![CDATA[indsæt billede : Hej AllanEt lille till&#230;gssp&#248;rgsm&#229;l...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4304.html#4304</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=183">kbno</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 07.Sep.2012 kl. 15:53<br /><br />Hej Allan<br><br>Et lille tillægsspørgsmål - det ser ud til at når man ligger et billede ind og gemmer filen gemmer den ikke billedet - dvs. at den kun har lavet en link til billedet. <br><br>Kan man ændre det så billedet bliver i filen ???<br>]]>
   </description>
   <pubDate>Fri, 07 Sep 2012 15:53:45 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4304.html#4304</guid>
  </item> 
  <item>
   <title><![CDATA[indsæt billede :   Velbekomme Kim //Allan ]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4299.html#4299</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1">Allan</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 07.Sep.2012 kl. 09:37<br /><br />Velbekomme Kim <img src="https://forum.excel-regneark.dk/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" /><div>&nbsp;</div><div>//Allan</div>]]>
   </description>
   <pubDate>Fri, 07 Sep 2012 09:37:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4299.html#4299</guid>
  </item> 
  <item>
   <title><![CDATA[indsæt billede : SUPER det virker som det skal...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4298.html#4298</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=183">kbno</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 07.Sep.2012 kl. 07:34<br /><br />SUPER det virker som det skal - takker 1000 <img src="/smileys/smiley17.gif" height="17" width="17" border="0" alt="T&#111;ngue" title="T&#111;ngue" /><DIV></DIV>]]>
   </description>
   <pubDate>Fri, 07 Sep 2012 07:34:02 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4298.html#4298</guid>
  </item> 
  <item>
   <title><![CDATA[indsæt billede :    Hej Kim,Brug &amp;#039;On Error...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4295.html#4295</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1">Allan</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 06.Sep.2012 kl. 15:08<br /><br />Hej Kim,<div>&nbsp;</div><div>Brug 'On Error Goto', det virker og er en hurtig måde at omgå disse fejl på.</div><div>&nbsp;</div><div><font color="#0000cc">Private Const Hoejde = "255" 'Hvis højde skal tilpasses cellens højde, ændres den til ""<br>Private Const Bredde = "465" 'Hvis bredde skal tilpasses celles højde, ændres den til ""<br>Private Const Placering = "b18" 'Hvis billedes skal være i aktive celle, ændres den til ""</font></div><div><font color="#0000cc">Private Sub CommandButton1_Click()<br><strong>On Error GoTo Fejl</strong><br>Application.ScreenUpdating = False<br>ActCell = ActiveCell.Address<br>If Placering &lt;&gt; "" Then Range(Placering).Select<br>Set Billede = ActiveSheet.Pictures.Insert(Application.GetOpenFilename("Alle filer,*.*"))</font></div><div><font color="#0000cc">With Billede<br>&nbsp;&nbsp;&nbsp; .ShapeRange.LockAspectRatio = msoFalse<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Hoejde = "" Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Height = ActiveCell.Height<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Height = Hoejde<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Bredde = "" Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = ActiveCell.Width<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = Bredde<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; .Top = ActiveCell.Top<br>&nbsp;&nbsp;&nbsp; .Left = ActiveCell.Left<br>&nbsp;&nbsp;&nbsp; .Placement = xlMoveAndSize<br>End With<br>Set Billede = Nothing<br>Range(ActCell).Select<br><strong>Fejl:</strong><br>Application.ScreenUpdating = True<br>End Sub</font></div><div>&nbsp;</div><div><font color="#000000">//Allan</font></div>]]>
   </description>
   <pubDate>Thu, 06 Sep 2012 15:08:19 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4295.html#4295</guid>
  </item> 
  <item>
   <title><![CDATA[indsæt billede : Jeg har nedenst&#229;ende script til...]]></title>
   <link>https://forum.excel-regneark.dk/indst-billede_topic877_post4294.html#4294</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=183">kbno</a><br /><strong>Emne:</strong> 877<br /><strong>Sendt:</strong> 06.Sep.2012 kl. 14:02<br /><br />Jeg har nedenstående script til at tilføje billeder i mit dokument - men hvis man annullere midt i processen (på den annuller knap windows laver) laver den en fejl.<br><br><b><font color="#FF0000"><i>Nogen der kan hjælpe med hvordan jeg slipper for dette?</i></font></b><br><br>Private Const Hoejde = "255" 'Hvis højde skal tilpasses cellens højde, ændres den til ""<br>Private Const Bredde = "465" 'Hvis bredde skal tilpasses celles højde, ændres den til ""<br>Private Const Placering = "b18" 'Hvis billedes skal være i aktive celle, ændres den til ""<br><br>Private Sub CommandButton1_Click()<br>Application.ScreenUpdating = False<br>ActCell = ActiveCell.Address<br>If Placering &lt;&gt; "" Then Range(Placering).Select<br>Set Billede = ActiveSheet.Pictures.Insert(Application.GetOpenFilename("Alle filer,*.*"))<br>With Billede<br>&nbsp;&nbsp;&nbsp; .ShapeRange.LockAspectRatio = msoFalse<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Hoejde = "" Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Height = ActiveCell.Height<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Height = Hoejde<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Bredde = "" Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = ActiveCell.Width<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Width = Bredde<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; .Top = ActiveCell.Top<br>&nbsp;&nbsp;&nbsp; .Left = ActiveCell.Left<br>&nbsp;&nbsp;&nbsp; .Placement = xlMoveAndSize<br>End With<br>Set Billede = Nothing<br>Range(ActCell).Select<br>Application.ScreenUpdating = True<br>End Sub<br>]]>
   </description>
   <pubDate>Thu, 06 Sep 2012 14:02:33 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/indst-billede_topic877_post4294.html#4294</guid>
  </item> 
 </channel>
</rss>