اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر

السلام عليكم ورحمة الله وبركاته

لدي هذا الكود يقوم بارسال ملاحظات لموظفين بتاخر معاملة ولكن احتاج لاضافة الموضوع في الكود وهذا الكود علما بان الموضوع في الخلية I

Function generatehtml(rw As Integer)

  Dim fs As Object

  Dim A As Object

  Dim FileName As String

  FileName = ThisWorkbook.Path & "\test.html"

  Set fs = CreateObject("Scripting.FileSystemObject")

  Set A = fs.CreateTextFile(FileName, True)

  A.WriteLine ("<head><meta http-equiv='Content-Type' content='text/html; charset=windows-1256' /></head><div dir='rtl' align='right' style='font-size:25px'>سعادة الاستاذ : <font style='color:red'>" & Range("h" & rw & "").Value & "</font><br />نفيد سعادتكم علما بأن :<br />المعاملة رقم : " & Range("a" & rw & "").Value & " والمؤرخة بتاريخ : " & Format(Range("b" & rw & "").Value, "yyyy/mm/dd dddd") & " متأخرة وتستوجب الرد<br />هذا للعلم واتخاذ اللازم<br />ملاحظة مهمة :<br /><font style='color:blue'>للاستفسار *****.</font></div>")

  A.Close

End Function

قام بنشر (معدل)

وين المشرفين ؟

السلام عليكم اخي ورحمة الله وبركاتة

انظر المرفق وايضا ها هو الكود بعد التعديل


Function generatehtml(rw As Integer)

  Dim fs As Object

  Dim A As Object

  Dim FileName As String

  FileName = ThisWorkbook.Path & "\test.html"

  Set fs = CreateObject("Scripting.FileSystemObject")

  Set A = fs.CreateTextFile(FileName, True)

  A.WriteLine ("<head><meta http-equiv='Content-Type' content='text/html; charset=windows-1256' /></head><div dir='rtl' align='right' style='font-size:25px'>سعادة الاستاذ : <font style='color:red'>" & Range("h" & rw & "").Value & "</font><br/>الموضوع : " & Range("i" & rw & "").Value & "</font><br />نفيد سعادتكم علما بأن :<br />المعاملة رقم : " & Range("a" & rw & "").Value & " والمؤرخة بتاريخ : " & Format(Range("b" & rw & "").Value, "yyyy/mm/dd dddd") & " متأخرة وتستوجب الرد<br />هذا للعلم واتخاذ اللازم<br />ملاحظة مهمة :<br /><font style='color:blue'>للاستفسار *****.</font></div>")

  A.Close

End Function

كود ارسال ملاحظات بواسطة التنبية بملف html.rar

تم تعديل بواسطه abc_abc_196
قام بنشر

ياخوان ظهرت مشكلة لدي وهو بان الكود يرسل لجميع الايميلات ماعدى الايميل الذي ينتهي gov.sa

وهو الاهم لدي .

هل يتركم احد بالنظر في امري مع خالص شكري له

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information