M
MWE
I am running Outlook2000 and WinXP. I posted a query a
month or so ago about a strange VBA problem. In
particular that the Application_ItemSend private procedure
in "ThisOutlookSession" did not work as expected. I could
never get it to work right and the check code placed there
never executes:
Private Sub Application_ItemSend(ByVal Item As Object,
Cancel As Boolean)
'
'
MsgBox "Application_ItemSend procedure"
Cancel = False
End Sub
Recently, while on site at a client doing a bit of
consulting, I added another profile for a MS Exchange
account (LAN) and suddenly the above code works. But it
only works when I am connected via that LAN. As soon as I
run "offline" (which is how I run for all other profiles
and connect only to move items to and from the mail
server), the ItemSend code stops working.
In a perverse way, this makes some sense as the item is
not really sent (rather sits in the Outbox) when I am
running offline. When I connect and flush the OutBox, the
ItemSend code could be bypassed to speed things up ??
Anyone have any ideas what might be going on here?
Thanks
month or so ago about a strange VBA problem. In
particular that the Application_ItemSend private procedure
in "ThisOutlookSession" did not work as expected. I could
never get it to work right and the check code placed there
never executes:
Private Sub Application_ItemSend(ByVal Item As Object,
Cancel As Boolean)
'
'
MsgBox "Application_ItemSend procedure"
Cancel = False
End Sub
Recently, while on site at a client doing a bit of
consulting, I added another profile for a MS Exchange
account (LAN) and suddenly the above code works. But it
only works when I am connected via that LAN. As soon as I
run "offline" (which is how I run for all other profiles
and connect only to move items to and from the mail
server), the ItemSend code stops working.
In a perverse way, this makes some sense as the item is
not really sent (rather sits in the Outbox) when I am
running offline. When I connect and flush the OutBox, the
ItemSend code could be bypassed to speed things up ??
Anyone have any ideas what might be going on here?
Thanks