Kerstin
2009-11-20 12:47:18 UTC
Hi,
is it possible to change an opened SendItem mail?
I want to add the Bcc field at page 2 for printing the mail with that field.
I am able to do this in a manual way.
Now I want to do these steps via VBA.
Has anybody an idea?
Thank you very much
Kerstin
Sub BccDrucken()
'das Script blendet für die aktuelle Mail die Seite 2 ein
'und fügt das Bcc-Feld ein und die Option 'Drucken' wird aktiviert
Dim objApp As Application
Dim objItem As MailItem
Dim objInsp As Inspector
Set objApp = CreateObject("Outlook.Application")
Set objItem = objApp.ActiveInspector.CurrentItem
Set objInsp = objItem.GetInspector
If objItem.Class = olMail And objItem.Sent = True Then
With objInsp
.ShowFormPage "S.2"
.ModifiedFormPages("S.2").Controls("Bcc").Add <-- this is
not allowed
End With
End If
Set objApp = Nothing
Set objItem = Nothing
Set objInsp = Nothing
End Sub
is it possible to change an opened SendItem mail?
I want to add the Bcc field at page 2 for printing the mail with that field.
I am able to do this in a manual way.
Now I want to do these steps via VBA.
Has anybody an idea?
Thank you very much
Kerstin
Sub BccDrucken()
'das Script blendet für die aktuelle Mail die Seite 2 ein
'und fügt das Bcc-Feld ein und die Option 'Drucken' wird aktiviert
Dim objApp As Application
Dim objItem As MailItem
Dim objInsp As Inspector
Set objApp = CreateObject("Outlook.Application")
Set objItem = objApp.ActiveInspector.CurrentItem
Set objInsp = objItem.GetInspector
If objItem.Class = olMail And objItem.Sent = True Then
With objInsp
.ShowFormPage "S.2"
.ModifiedFormPages("S.2").Controls("Bcc").Add <-- this is
not allowed
End With
End If
Set objApp = Nothing
Set objItem = Nothing
Set objInsp = Nothing
End Sub