wombatbill
Programmer
In Visual basic 5 I have tried the following code and get the "Object Required" error message when it reaches the SessionID code and cannot understand why.
Private Sub Form_Load()
MAPISession1.Signon
MAPIMessages1.SessionID = MAPISession1.SessionID
I originally had quite a bit of code below this and the form had "Send To" , "Subject" and "Text" Boxes.
I have removed all my Code and just replaced it with
MAPIMessages1.Compose
MAPIMessages1.Send True
MAPIMessages1.Signoff
End Sub
I have the Microsoft MAPI Controls 5.0 included.
When I run the module I get my normal Outlook mail login, password etc., I assume this means that the signon is working okay, which seems to be backed up by the fact that In Debug the MAPISession1.SessionID has a value. Which incidentally appears to be different each time I try to Run (I would assume this to be normal).
Any help with fixing the above would be most appreciated
Bill G.
Private Sub Form_Load()
MAPISession1.Signon
MAPIMessages1.SessionID = MAPISession1.SessionID
I originally had quite a bit of code below this and the form had "Send To" , "Subject" and "Text" Boxes.
I have removed all my Code and just replaced it with
MAPIMessages1.Compose
MAPIMessages1.Send True
MAPIMessages1.Signoff
End Sub
I have the Microsoft MAPI Controls 5.0 included.
When I run the module I get my normal Outlook mail login, password etc., I assume this means that the signon is working okay, which seems to be backed up by the fact that In Debug the MAPISession1.SessionID has a value. Which incidentally appears to be different each time I try to Run (I would assume this to be normal).
Any help with fixing the above would be most appreciated
Bill G.