Help through solving problem
Hi everybody,
I want to send emails with more than one *.xls attachment by using vb6 and outlook 2000.
I wrote some code. Part of my code is given bellow
'**************
Private Sub Command1_Click()
Dim gCdoSession As MAPI.Session
Dim CdoFolder As MAPI.Folder
Dim CdoMessages As MAPI.Messages
Dim CdoMessage As MAPI.Message
Dim CdoRecipients As MAPI.Recipients
Dim CdoRecipient As MAPI.Recipient
' Establish a MAPI Session
Set gCdoSession = New MAPI.Session
gCdoSession.Logon
' We must have a folderin whicj to create the outgong messages
Set CdoFolder = gCdoSession.Outbox
End Sub
'****************
The problem is:
During this process visual basic compiuler gives an error message "run-time error '429' with a messsage ActiveX component cannot create object' ?
Thanks,
I appreciate any help
Rudaba
|