The problem is, I want this macro to run after my mail is processed by some
VBA code in ThisOutlookSession. I've added a call line towards the end of
my session code but it doesn't seem to run.
Any ideas?
--
______________________________________________________________
Dan Lehman
Dan dot Lehman at techie dot com
Note: Remove NOSPAM. & .NOSPAM before replying.
--
Sue Mosher, Outlook MVP
Outlook and Exchange Solutions
at http://www.slipstick.com
"Dan Lehman" <NOSPAM.D...@techie.com.NOSPAM> wrote in message
news:10086322...@excalibur.osa.com.au...
call RemoveNewMailIcon
RemoveNewMailIcon is a sub stored in a module:
Sub RemoveNewMailIcon()
EnumWindows AddressOf EnumWindowProc, 0
End Sub
--
______________________________________________________________
Dan Lehman
Dan dot Lehman at techie dot com
Note: Remove NOSPAM. & .NOSPAM before replying.
"Sue Mosher" <sue...@slipstick.com> wrote in message
news:O9uAc01hBHA.1088@tkmsftngp02...
"Dan Lehman" <NOSPAM.D...@techie.com.NOSPAM> wrote in message
news:10086364...@excalibur.osa.com.au...
> All I'm using from ThisOutlookSession is:
>
> call RemoveNewMailIcon
>
> RemoveNewMailIcon is a sub stored in a module:
>
> Sub RemoveNewMailIcon()
> EnumWindows AddressOf EnumWindowProc, 0
> End Sub
>
If I change the macro name (to a non-existent one) in my call line, I get an
error, as expected.
I'd paste the macro here but I haven't changed it from Neo's original code
at all. You've probably already seen it at
http://www.slipstick.com/dev/code/clearenvicon.htm.
The Slipstick page discusses running it from a private sub in
ThisOutlookSession. I have a private sub in there:
Private Sub olInboxItems_ItemAdd(ByVal Item As Object)
This sub does some checking on messages as they arrive in my Inbox and moves
them, marks them as read, etc and then attempts to call Neo's macro to clear
the icon from my system tray.
Everything else in my sub works fine - it just appears that the macro isn't
being run properly.
--
______________________________________________________________
Dan Lehman
Dan dot Lehman at techie dot com
Note: Remove NOSPAM. & .NOSPAM before replying.
"Sue Mosher" <sue...@slipstick.com> wrote in message
news:OhWsS4#hBHA.2568@tkmsftngp03...
"Dan Lehman" <NOSPAM.D...@techie.com.NOSPAM> wrote in message
news:10087062...@excalibur.osa.com.au...
--
______________________________________________________________
Dan Lehman
Dan dot Lehman at techie dot com
"Sue Mosher" <sue...@slipstick.com> wrote in message
news:eWxwKEJiBHA.2284@tkmsftngp02...