<?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 : Hjælp til at sende email fra excel</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Hjælp til at sende email fra excel]]></description>
  <pubDate>Sat, 05 Dec 2026 14:55:57 +0000</pubDate>
  <lastBuildDate>Sat, 20 Sep 2014 05:18:26 +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=1813</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[Hjælp til at sende email fra excel : I den linje, hvor du tester for...]]></title>
   <link>https://forum.excel-regneark.dk/hjlp-til-at-sende-email-fra-excel_topic1813_post8534.html#8534</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=732">EXCELGAARD</a><br /><strong>Emne:</strong> 1813<br /><strong>Sendt:</strong> 20.Sep.2014 kl. 05:18<br /><br />I den linje, hvor du tester for cellerne B-D, kan du osse bare teste for celle A:<table width="99%"><tr><td><pre class="BBcode">If cell.Value Like "?*@?*.?*" And _<br>&nbsp;&nbsp; LCase(Cells(cell.Row, "C").Value) = "yes" And _<br>&nbsp;&nbsp; Cells(cell.Row, "A").Value) &lt;&gt; "" And_<br>&nbsp;&nbsp; LCase(Cells(cell.Row, "D").Value) &lt;&gt; "send" Then</pre></td></tr></table>]]>
   </description>
   <pubDate>Sat, 20 Sep 2014 05:18:26 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/hjlp-til-at-sende-email-fra-excel_topic1813_post8534.html#8534</guid>
  </item> 
  <item>
   <title><![CDATA[Hjælp til at sende email fra excel : jeg &#248;nsker at sende en mail til...]]></title>
   <link>https://forum.excel-regneark.dk/hjlp-til-at-sende-email-fra-excel_topic1813_post8527.html#8527</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=1241">rashid3105</a><br /><strong>Emne:</strong> 1813<br /><strong>Sendt:</strong> 19.Sep.2014 kl. 11:35<br /><br />jeg ønsker at sende en mail til en liste af modtagere, hvor den kun skal sendes, hvis første celle (A2) ikke er tom.<div><br></div><div>jeg har benyttet denne kode:</div><div>Sub Test2()</div><div>'For Tips see: http://www.rondebruin.nl/win/winmail/Outlook/tips.htm</div><div>'Working in Office 2000-2013</div><div>&nbsp; &nbsp; Dim OutApp As Object</div><div>&nbsp; &nbsp; Dim OutMail As Object</div><div>&nbsp; &nbsp; Dim cell As Range</div><div><br></div><div>&nbsp; &nbsp; Application.ScreenUpdating = False</div><div>&nbsp; &nbsp; Set OutApp = CreateObject("Outlook.Application")</div><div><br></div><div>&nbsp; &nbsp; On Error GoTo cleanup</div><div>&nbsp; &nbsp; For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If cell.Value Like "?*@?*.?*" And _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LCase(Cells(cell.Row, "C").Value) = "yes" _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;And LCase(Cells(cell.Row, "D").Value) &lt;&gt; "send" Then</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set OutMail = OutApp.CreateItem(0)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; On Error Resume Next</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; With OutMail</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .To = cell.Value</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Subject = "Reminder"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Body = "Dear " &amp; Cells(cell.Row, "A").Value _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; vbNewLine &amp; vbNewLine &amp; _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Please contact us to discuss bringing " &amp; _</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "your account up to date."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'You can add files also like this</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '.Attachments.Add ("C:\test.txt")</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Send &nbsp;'Or use Display</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End With</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; On Error GoTo 0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cells(cell.Row, "D").Value = "send"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set OutMail = Nothing</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; Next cell</div><div><br></div><div>cleanup:</div><div>&nbsp; &nbsp; Set OutApp = Nothing</div><div>&nbsp; &nbsp; Application.ScreenUpdating = True</div><div>End Sub</div><div><br></div><div>men sejler lidt i hvordan jeg kan differentiere om den første celle (A2) er tom eller ikke. Ved tom skal den springes over!!</div><div>samme for A3, A4 osv.</div><div>håber I kan hjælpe :)</div><div><br></div><div>Takker på forhånd!</div>]]>
   </description>
   <pubDate>Fri, 19 Sep 2014 11:35:42 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/hjlp-til-at-sende-email-fra-excel_topic1813_post8527.html#8527</guid>
  </item> 
 </channel>
</rss>