לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Convert VBA on Outlook to TBird

  • אין תגובות
  • 0 have this problem
more options

Can this be doctored to send via Thunderbird? If so pointers would be apreciated! Sub FredWeeklyReport() Dim OutApp As Object

   Dim OutMail As Object
   Dim MyAddress As String
   Dim MyAddress2 As String
   Dim Response
   Set OutApp = CreateObject("Outlook.Application")
   Set OutMail = OutApp.CreateItem(0)
   On Error Resume Next
   
   Response = MsgBox("Fred. Hide all invoices, check worksheet is up to date", vbOKCancel)
   If Response = vbCancel Then GoTo ExitLable
   'Worksheets("Sheet19").Visible = False
   MyAddress = Sheets("Work summary").Range("Eddress1").Value
   MyAddress2 = Sheets("Work summary").Range("Eddress2").Value
   With OutMail
       .To = MyAddress
       '.CC = MyAddress2
       .BCC = ""
       .Subject = "Fred - PM - Weekly report"
       .Body = "Attached please find my weekly report. Regards, Peter"
       .Attachments.Add ActiveWorkbook.FullName
       'You can add other files also like this
       '.Attachments.Add ("C:\test.txt")
       .Send   'or use .Display
   End With
   On Error GoTo 0

ExitLable:

   Set OutMail = Nothing
   Set OutApp = Nothing

End Sub

Can this be doctored to send via Thunderbird? If so pointers would be apreciated! Sub FredWeeklyReport() Dim OutApp As Object Dim OutMail As Object Dim MyAddress As String Dim MyAddress2 As String Dim Response Set OutApp = CreateObject("Outlook.Application") Set OutMail = OutApp.CreateItem(0) On Error Resume Next Response = MsgBox("Fred. Hide all invoices, check worksheet is up to date", vbOKCancel) If Response = vbCancel Then GoTo ExitLable 'Worksheets("Sheet19").Visible = False MyAddress = Sheets("Work summary").Range("Eddress1").Value MyAddress2 = Sheets("Work summary").Range("Eddress2").Value With OutMail .To = MyAddress '.CC = MyAddress2 .BCC = "" .Subject = "Fred - PM - Weekly report" .Body = "Attached please find my weekly report. Regards, Peter" .Attachments.Add ActiveWorkbook.FullName 'You can add other files also like this '.Attachments.Add ("C:\test.txt") .Send 'or use .Display End With On Error GoTo 0 ExitLable: Set OutMail = Nothing Set OutApp = Nothing End Sub

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.