<?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 : Sende mail, hvis cell value = Yes</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Makro og VBA : Sende mail, hvis cell value = Yes]]></description>
  <pubDate>Sat, 05 Dec 2026 08:26:36 +0000</pubDate>
  <lastBuildDate>Thu, 24 Mar 2022 14:52:36 +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=4703</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[Sende mail, hvis cell value = Yes : Private Sub GemSomPDF_Click()...]]></title>
   <link>https://forum.excel-regneark.dk/sende-mail-hvis-cell-value-yes_topic4703_post23258.html#23258</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2351">Hartig</a><br /><strong>Emne:</strong> 4703<br /><strong>Sendt:</strong> 24.Mar.2022 kl. 14:52<br /><br /><div><font size="1">Private Sub GemSomPDF_Click()</font></div><div><font size="1"><br></font></div><div><font size="1">&nbsp; &nbsp; Dim rngCheck As Range</font></div><div><font size="1">&nbsp; &nbsp; Dim cllCheck As Range</font></div><div><font size="1">&nbsp; &nbsp; Dim bRedCell As Boolean</font></div><div><font size="1">&nbsp; &nbsp; Dim bCheckX As Boolean</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; Dim OutApp As Object</font></div><div><font size="1">&nbsp; &nbsp; Dim OutMail As Object</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; Set OutApp = CreateObject("Outlook.Application")</font></div><div><font size="1">&nbsp; &nbsp; Set OutMail = OutApp.CreateItem(0)</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; Dim sht As Worksheet</font></div><div><font size="1">&nbsp; &nbsp; Set sht = ActiveSheet</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; If Len(Dir("c:\1_Completed_PM", vbDirectory)) = 0 Then</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp;MkDir "c:\1_Completed_PM"</font></div><div><font size="1">&nbsp; &nbsp; End If</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; 'Set path to Folder</font></div><div><font size="1">&nbsp; &nbsp; fPath = "c:\1_Completed_PM\"</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; 'Build File Name from Sheet1 A3, A4 &amp; C4</font></div><div><font size="1">&nbsp; &nbsp; With sht</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; fName = .Range("A3") &amp; "-" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Range("A4") &amp; "-" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Range("C4")</font></div><div><font size="1">&nbsp; &nbsp; fName = Replace(fName, "/", "_", , , vbTextCompare)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; End With</font></div><div><font size="1"><br></font></div><div><font size="1">&nbsp; &nbsp; 'Export as PDF to Folder</font></div><div><font size="1">&nbsp; &nbsp; Set rngCheck = sht.Range("A1:E200")</font></div><div><font size="1">&nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; For Each cllCheck In rngCheck.Cells</font></div><div><font size="1">&nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; If cllCheck.DisplayFormat.Interior.Color = 8696052 Then</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox "There are still red cells in the PM checklist", vbOKOnly + vbCritical, "Cell-check"</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bRedCell = True</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit For</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; End If</font></div><div><font size="1">&nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; Next cllCheck</font></div><div><font size="1">&nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; If Not bRedCell Then</font></div><div><font size="1">&nbsp; &nbsp; Application.PrintCommunication = False</font></div><div><font size="1">&nbsp; &nbsp; &nbsp;With ActiveSheet.PageSetup</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .LeftMargin = Application.InchesToPoints(0)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .RightMargin = Application.InchesToPoints(0)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .TopMargin = Application.InchesToPoints(0)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .BottomMargin = Application.InchesToPoints(0)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .HeaderMargin = Application.InchesToPoints(0)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .FooterMargin = Application.InchesToPoints(0)</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; '.Orientation = xlLandscape</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .Orientation = xlPortrait</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .PaperSize = ePaperSize</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .Zoom = False</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .FitToPagesWide = 1</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; .FitToPagesTall = 0</font></div><div><font size="1">&nbsp; &nbsp; End With</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; sht.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fPath &amp; fName, _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Quality:=xlQualityStandard, IncludeDocProperties:=True, _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IgnorePrintAreas:=False, OpenAfterPublish:=False</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If Err = 0 Then</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox "The PM checklist are now saved with success. It can be found in the folder= C:\1_Completed_PM\ to attach Work Order in IFS.", vbInformation</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Set rngCheck = sht.Range("D9:D200")</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For Each cllCheck In rngCheck.Cells</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;If UCase(cllCheck) = "X" Then</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bCheckX = True</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Exit For</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;End If</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Next cllCheck</font></div><div><font size="1">&nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If bCheckX Then</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If MsgBox("According to PM WO " &amp; sht.Range("A3") &amp; ", is one ore more things in " &amp; sht.Range("A4") &amp; " Not OK" &amp; vbNewLine &amp; vbNewLine &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Do you wish to send an e-mail to customerservice, so they can create a new Work Order? (INFO: The mail will be send, when the computer has internet, and Outlook is open)", _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vbYesNo + vbQuestion, "Send e-mail to get new Work Order?") = vbYes Then</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; With OutMail</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .To = Sheets("Customer service e-mail address").Range("G1")</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Attachments.Add fPath &amp; fName &amp; ".pdf"</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .CC = ""</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .BCC = ""</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Subject = "According to PM WO number " &amp; sht.Range("A3") &amp; ", a new Work Orders is needed in " &amp; sht.Range("A4") &amp; " IFS-number: " &amp; sht.Range("A2") &amp; ""</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .display</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .HTMLbody = "&lt;HTML&gt;&lt;BODY&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;span style=""color:#FF0000""&gt;On the Preventive Maintenance is one ore more things &lt;u&gt;''NOT OK''&lt;/u&gt;&lt;/span style=""color:#FF0000""&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;span style=""color:#FF0000""&gt;A new Work Order needs to be created to fix this&lt;/span style=""color:#FF0000""&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "(Make X's below if it's urgent, and if it should be invoiced. Insert the name of the contact/reference)" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;Urgent (Priority 1) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;_______________________&lt;/u&gt;&lt;/b&gt;&nbsp; &nbsp;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;Regular service (Priority 2) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;_______________________&lt;/u&gt;&lt;/b&gt; " &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;By occasion (Priority 3) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;u&gt;_______________________&lt;/u&gt;&lt;/b&gt; " &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;Being fixed on this PM? &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YES&lt;u&gt;______&lt;/u&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&lt;u&gt;______&lt;/u&gt;&lt;/b&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=""color:#FF0000""&gt;If YES - a Work Order should be created to &lt;u&gt;" &amp; sht.Range("C3") &amp; "&lt;/u&gt; ASAP&lt;/span style=""color:#FF0000""&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;Should this be invoiced? &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YES&lt;u&gt;______&lt;/u&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO&lt;u&gt;______&lt;/u&gt;&lt;/b&gt; " &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;Contact in store: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;_______________________&lt;/u&gt;&lt;/b&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;b&gt;Description of what NOT OK in the store:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;u&gt; " &amp; sht.Range("A36") &amp; "&lt;/b&gt;&lt;/u&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;/BODY&gt;&lt;/HTML&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&lt;br&gt;&lt;br&gt;" &amp; _</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OutMail.HTMLbody</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End With</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; Else</font></div><div><font size="1">&nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; MsgBox "PDF-file NOT SAVED because of red cells", vbOKOnly + vbCritical, "PDF-file NOT SAVED"</font></div><div><font size="1">&nbsp; &nbsp;</font></div><div><font size="1">&nbsp; &nbsp; End If</font></div><div><font size="1"><br></font></div><div><font size="1">End Sub</font></div>]]>
   </description>
   <pubDate>Thu, 24 Mar 2022 14:52:36 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/sende-mail-hvis-cell-value-yes_topic4703_post23258.html#23258</guid>
  </item> 
  <item>
   <title><![CDATA[Sende mail, hvis cell value = Yes : Jeg har et ark med ret meget kode...]]></title>
   <link>https://forum.excel-regneark.dk/sende-mail-hvis-cell-value-yes_topic4703_post23257.html#23257</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2351">Hartig</a><br /><strong>Emne:</strong> 4703<br /><strong>Sendt:</strong> 24.Mar.2022 kl. 14:51<br /><br />Jeg har et ark med ret meget kode i, men nu kunne jeg godt tænke mig, OGSÅ at få det til at sende en mail med PDF-filen vedhæftet til kunden, hvis kunden selv ønsker dette i forbindelse med eftersynet (Dvs. E7 bliver til "Yes")<br><div><br></div><div><br></div><div><img src="" border="0" /></div>]]>
   </description>
   <pubDate>Thu, 24 Mar 2022 14:51:44 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/sende-mail-hvis-cell-value-yes_topic4703_post23257.html#23257</guid>
  </item> 
 </channel>
</rss>