Option Explicit und olMailItem
09.02.2005 11:28:55
Doris Maart
da will ich jetzt mal so richtig vorbildlich mit "Option Explicit"
arbeiten und jetzt meckert VBA das folgende an:
Dim objApp As Object
Dim themail As Object
Set objApp = CreateObject("outlook.application")
Set themail = objApp.CreateItem(olMailItem)
"olMailItem" wird als unbekannte Variable angemäkelt. Auch wenn ich statt Object eine Outlook.Application und Outlook.MailItem angebe, sind diese nicht bekannt.
Da scheint mir irgendwas zu fehlen. Aber was?