<?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 : Ændre mail fra body til HTMLbody</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Ændre mail fra body til HTMLbody]]></description>
  <pubDate>Sat, 05 Dec 2026 05:23:30 +0000</pubDate>
  <lastBuildDate>Wed, 09 Mar 2022 18:55:01 +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=4688</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[Ændre mail fra body til HTMLbody : Her en lidt forenklet udgave,...]]></title>
   <link>https://forum.excel-regneark.dk/andre-mail-fra-body-til-htmlbody_topic4688_post23223.html#23223</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2275">berg</a><br /><strong>Emne:</strong> 4688<br /><strong>Sendt:</strong> 09.Mar.2022 kl. 18:55<br /><br />Her en lidt forenklet udgave, som viser hvordan du laver din HTML Body.<div><br></div><div><div>Sub sendmail()</div><div><br></div><div>Dim OutlookApp As Object</div><div>Dim OutlookMail As Object</div><div>Dim strbody As String</div><div>Set OutlookApp = CreateObject("Outlook.Application")</div><div>Set OutlookMail = OutlookApp.CreateItem(0)</div><div>On Error Resume Next</div><div><br></div><div>&nbsp; &nbsp; 'Her indsættes den HTML tekst som skal inkluderes i Body sektionen</div><div>&nbsp; &nbsp; &nbsp; &nbsp; strbody = "&lt;BODY style=font-size:11pt;font-family:Calibri&gt;" &amp; "Hej " &amp; _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "Velkommen som bruger af TOMRA Notify + Assist." &amp; _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "&lt;BODY style=font-size:10pt;font-family:Calibri&gt;&lt;br&gt;" &amp; ActiveSheet.Range("D4").Value &amp; _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;BODY style=font-size:10pt;font-family:Calibri&gt;&lt;br&gt;" &amp; "Læs mere om produktet, på" &amp; _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "&lt;BODY style=font-size:10pt;font-family:Calibri&gt;" &amp; "<a href="http://www.tomra.com/en/collecti&#111;n/reverse-vending/tcs-digital/notify-and-assist" target="_blank" rel="nofollow">www.tomra.com/en/collection/reverse-vending/tcs-digital/notify-and-assist"</a></div><div><br></div><div>With OutlookMail</div><div>&nbsp; &nbsp; .To = Sheets("Credentials").Range("B1")</div><div>&nbsp; &nbsp; .CC = ""</div><div>&nbsp; &nbsp; .BCC = ""</div><div>&nbsp; &nbsp; .Subject = "Velkommen til TOMRA Notify + Assist"</div><div>&nbsp; &nbsp; .HTMLbody = strbody &amp; "&lt;br&gt;" &amp; .HTMLbody</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; .Attachments.Add "C:\N+A Userguides\na-ug-02-2022-DK.pdf"</div><div>&nbsp; &nbsp; .Send</div><div>&nbsp; &nbsp;&nbsp;</div><div>End With</div><div><br></div><div>&nbsp; If IsCreated Then OutlApp.Quit</div><div>&nbsp; Set OutlApp = Nothing</div><div>End Sub</div></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 09 Mar 2022 18:55:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/andre-mail-fra-body-til-htmlbody_topic4688_post23223.html#23223</guid>
  </item> 
  <item>
   <title><![CDATA[Ændre mail fra body til HTMLbody : Hej.Jeg pr&#248;ver at &#230;ndre en mail...]]></title>
   <link>https://forum.excel-regneark.dk/andre-mail-fra-body-til-htmlbody_topic4688_post23217.html#23217</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2351">Hartig</a><br /><strong>Emne:</strong> 4688<br /><strong>Sendt:</strong> 03.Mar.2022 kl. 09:59<br /><br />Hej.<div><br></div><div>Jeg prøver at ændre en mail fra almindelig body til HTMLbody, men det går ikke så godt, for at sige det mildt.&nbsp;<img src="https://forum.excel-regneark.dk/smileys/smiley12.gif" border="0" alt="Sleepy" title="Sleepy" /></div><div>Jeg har forsøgt at generere den ønskede tekst i en HTML generator, men den bliver ved med at gå i fejl:</div><div><img src="" border="0" /></div><div><br></div><div>Jeg har forsøgt Google, men uden held.</div><div><br></div><div>Koden ser ud således:</div><div><br></div><div><div>Dim OutlookApp As Object</div><div>Dim OutlookMail As Object</div><div>Set OutlookApp = CreateObject("Outlook.Application")</div><div>Set OutlookMail = OutlookApp.CreateItem(0)</div><div>On Error Resume Next</div><div><br></div><div><br></div><div>With OutlookMail</div><div>&nbsp; &nbsp; .To = Sheets("Credentials").Range("B1")</div><div>&nbsp; &nbsp; .CC = ""</div><div>&nbsp; &nbsp; .BCC = ""</div><div>&nbsp; &nbsp; .Subject = "Velkommen til TOMRA Notify + Assist"</div><div>&nbsp; &nbsp; .HTMLbody = "&lt;HTML&gt;&lt;BODY&gt;" &amp; _</div><div>&nbsp; &nbsp; &lt;p&gt;Hej!&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Velkommen som bruger af TOMRA Notify + Assist.&lt;/p&gt;</div><div>&nbsp; &nbsp; p&gt;L&amp;aelig;s mere om produktet p&amp;aring; &lt;a href="https://www.tomra.com/en/collection/reverse-vending/tcs-digital/notify-and-assist"&gt;https://www.tomra.com/en/collection/reverse-vending/tcs-digital/notify-and-assist&lt;/a&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Vejledning til hvordan du kommer i gang:&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;1 Hent appen&lt;/strong&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;S&amp;oslash;g efter &lt;u&gt;TOMRA Notify+Assist&lt;/u&gt; i Appstore eller i Google Play-butik.&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Du kan bruge appen p&amp;aring; b&amp;aring;de smartphones og tablets.&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Det er ogs&amp;aring; muligt at &amp;aring;bne applikationen i en browser med denne webadresse:&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&lt;a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnotifyassist.tomra.cloud%2F&amp;amp;data=02%7C01%7Ckenneth.hartig%40tomra.com%7Cde457da4f21d4130c8cb08d7780ae239%7C4308d118edd143008a37cfeba8ad5898%7C0%7C0%7C637109860455220919&amp;amp;sdata=WDTFdZ9ORcAmGBLDKuhIporUzLQjDG2fZcuz60fz3ds%3D&amp;amp;reserved=0"&gt;https://notifyassist.tomra.cloud&lt;/a&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;2 Log ind&lt;/strong&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;For at logge ind som butikschef/k&amp;oslash;bmand:&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Brugernavn: &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Sheets("Credentials").Range("B1")&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Password: &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Sheets("Credentials").Range("B2")&lt;/strong&gt;&lt;/span&gt;(det m&amp;aring; du gerne&amp;nbsp;&lt;u&gt;&amp;aelig;ndre&lt;/u&gt;)&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;3 Tilf&amp;oslash;j brugere&lt;/strong&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Personalet kan oprette deres egne brugerkonti, hvor du som butikschef/k&amp;oslash;bmand skal godkende adgang.&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Se funktioner under menuen / fanen &amp;#39;USERS&amp;#39;.&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Butik-id, der skal bruges til at anmode om adgang:&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Alias/Store ID:&amp;nbsp;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Sheets("Credentials").Range("B3")&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;</div><div>&nbsp; &nbsp; (Du kan ogs&amp;aring; finde butik-id under &amp;quot;Indstillinger&amp;quot; i applikationen).&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;4 Tilpas hvilke notifikationer du &amp;oslash;nsker ad modtage p&amp;aring; enheden&lt;/strong&gt;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;I Notify+Assist appen, tryk p&amp;aring; &lt;u&gt;indstillinger&lt;/u&gt; (lille tandhjul i &amp;oslash;vre h&amp;oslash;jre hj&amp;oslash;rne)&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;V&amp;aelig;lg Notifikationer&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Sl&amp;aring; notifikationer til, for at tilpasse hvilke notifikationer der &amp;oslash;nskes at modtage p&amp;aring; enheden.&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;p&gt;Hvis du har sp&amp;oslash;rgsm&amp;aring;l eller vil give os din feedback eller ideer til forbedringer, s&amp;aring; kontakt os.&lt;/p&gt;</div><div>&nbsp; &nbsp; &lt;/BODY&gt;&lt;/HTML&gt;" &amp; _</div><div>&nbsp; &nbsp; OutMail.HTMLbody</div><div>&nbsp; &nbsp; .Attachments.Add "C:\N+A Userguides\na-ug-02-2022-DK.pdf"</div><div>&nbsp; &nbsp; .Send</div><div>&nbsp; &nbsp;&nbsp;</div><div><br></div><div>End With</div><div><br></div><div>Set OutlookMail = Nothing</div><div>Set OutlookApp = Nothing</div></div>]]>
   </description>
   <pubDate>Thu, 03 Mar 2022 09:59:59 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/andre-mail-fra-body-til-htmlbody_topic4688_post23217.html#23217</guid>
  </item> 
 </channel>
</rss>