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

ارجو المساعدة بهذا الماكرو


MO-Fahmy

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

السلام عليكم يا شباب

الماكرو ده بيرسل الاكسيل كاتاتش في الميل .. 

ارجو المساعدة في تعديل الماكرو فانه يختار شيتات معينة بعدين يرسلها وكمان يعدل الرسالة الي بتكتبه في الميل من حيث الخط لاني مش عارف للاسف 

وشكرا جدا ليكم 

Sub Send_Mail()
Dim Email_Subject, Email_Send_From, Email_Send_To, _
Email_Cc, Email_Bcc, Email_Body As String
Dim Mail_Object, Mail_Single As Variant
Email_Subject = "Test"
Email_Send_From = "M.fahmi2012j@outlook.com"
Email_Send_To = "M.fahmi2012j@outlook.com"
Email_Cc = "M.fahmi2012j@outlook.com"
Email_Bcc = "M.fahmi2012j@outlook.com"
Email_Body = "Test"
On Error GoTo debugs
Set Mail_Object = CreateObject("Outlook.Application")
Set Mail_Single = Mail_Object.CreateItem(0)
With Mail_Single
.Subject = Email_Subject
.To = Email_Send_To
.CC = Email_Cc
.BCC = Email_Bcc
.HTMLBody = Email_Body
.Save
End With
debugs:
If Err.Description <> "" Then MsgBox Err.Description
End Sub

 

Test send.xlsb

رابط هذا التعليق
شارك

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