Live-Forum - Die aktuellen Beiträge
Anzeige
Archiv - Navigation
1136to1140
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

Mail mit office 2007 verschicken

Mail mit office 2007 verschicken
marcl
Hallo zusammen,
ich habe schönes Makro zum Verschicken von Mails mit Excel. Leider funktioniert es in 2007 nicht mehr so ganz.
Hier einmal der Code:
Sub mail_Stellen()
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Dim intRow As Integer, intRow2 As Integer, intCounter As Integer, intCounter2 As Integer
Dim strFile As String, strRecipientBcc As String, strRecipient As String, strSubject As  _
String
Dim bolStatusBar
Application.ScreenUpdating = False
Application.DisplayStatusBar = True
bolStatusBar = Application.DisplayStatusBar
Set objOutlook = CreateObject(Outlook.Application)
For intCounter = 9 To 11
strRecipient = Cells(intCounter, zahl).Value & "; " & strRecipient
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(strRecipient)
objOutlookRecip.Type = olTo
.SentOnBehalfOfName = "test.de"
.Subject = "Januar"
.Body = "Sehr geehrte Damen und Herren," & vbLf & vbLf & _
objOutlookRecip.Resolve
End With
Next intCounter
Set objOutlook = Nothing
objOutlookMsg.Display
Application.StatusBar = False
Application.DisplayStatusBar = bolStatusBar
End Sub

bin für jede hilfe dankbar
Gruß
marcl

5
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Benutzer
Anzeige
was funktioniert und was nicht ? (owT)
17.02.2010 14:26:56
Renee

AW: was funktioniert und was nicht ? (owT)
17.02.2010 14:30:58
marcl
sry;
Set objOutlook = GetObject(, Outlook.Application)
gibt Fehlermeldung "Objekterstellung durch ActiveX-Komponente nicht möglich".
Gruß
marcl
Codezeile ist nicht im Original ? (owT)
17.02.2010 14:37:05
Renee

AW: Codezeile ist nicht im Original ? (owT)
17.02.2010 15:20:04
Reinhard
Hallo Mard,
vielleicht so:
Set objOutlook = GetObject(, "Outlook.Application")
Gruß
Reinhard
AW: Outlookzugriff auf Server gesperrt :-( o.T.
18.02.2010 07:46:43
marcl
Ich habe mittlerweile festgestellt, dass meine Kollegen auf dem testserver Office2007 keinen Outlookzugriff erteilt haben.
Danke
Reinhard
Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige