Hi Trefor,
In your Outlook thread, you replied to Michael:
============
Sorry but I am new to this, what does this "don't create a new Application
object but use the instrinsic one" mean? In my example code, have I done
something that breaks this rule? If so are you able to assist with what is
wrong?
============
Michael was referring to the fact that your
code creates a new version of Outlook
with the following instruction:
Set olApp = New Outlook.Application
---
Regards.
Norman
> Norman,
>
[quoted text clipped - 60 lines]
>> >
>> > Are these my only choices (or have I misunderstood any of the choices)?
Trefor - 28 May 2008 09:26 GMT
Norman,
Thanks again, is this the only line that is wrong? What should I do instead?
Does this apply to Excel VBA as well?
I tried copying my entire code into Outlook and it look likes I mgiht have a
few other problems as well, so my short term fix may well be running from
Excel anyway.

Signature
Trefor
> Hi Trefor,
>
[quoted text clipped - 81 lines]
> >> >
> >> > Are these my only choices (or have I misunderstood any of the choices)?
Trefor - 28 May 2008 12:28 GMT
Norman,
Thanks I have worked it out between here and the Outlook Discussion Group.

Signature
Trefor
> Hi Trefor,
>
[quoted text clipped - 81 lines]
> >> >
> >> > Are these my only choices (or have I misunderstood any of the choices)?
Ashok - 08 Sep 2008 14:56 GMT
Hi Everyone,
In outlook 2007, the following code is not working properly. This is add-in
project build using Visual basic 6.0.
----------------------------------------
Set oOutbox = m_oOutlook.Session.GetDefaultFolder(olFolderOutbox)
oMovedMail.Item = oCurMail.Move(oOutbox)
oMovedMail.Send
Variable usage FYI...
Dim oCurMail as object
Set oCurMail = CreateObject("Test.USafeMailItem")
' Parameter
ByRef objMail As Outlook.MailItem
Dim oMovedMail As Object
Set oCurMail = CreateObject("Test.USafeMailItem")
' Get the current mail item.
oCurMail.Item = objMail
Dim oOutbox As Object
----------------------------------------
The followings are the observations;
Case 1 : Some time, the mail is going out to the receiver, but it stayed at
outbox itself.
Case 2 : Some time, the mail is not all going out, it stayed at outbox itself.
Could you please tell that what is the actual issues which cause the
functionality? Do I need to change the coding flow for outlook 2007?
Note : This is absolutely working fine in prior to 2007.
I pasted only the important code fyi. I ensure that there is no runtime err
or logical err.
Your adivse would be appreciated on this.
Thx in Advance,
Ashok