will_scarlet7
asked on
Autorun MACRO on Send & Recieve...
Is there a way to trigger a MACRO to run automaticaly after every send & recieve?
ASKER
ThanX Stefri! Looks good in theory. I'll test it out later today and let you know how it goes. Do you know if I can set this to a folder other that inbox as well?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I super appreciate it! I'll let you know how it goes when I test it later.
ThanX!
Sam
ThanX!
Sam
ASKER
ThanX for your help! It worked beautifully.
God bless!
Sam
God bless!
Sam
ASKER
Are you still partricipating in the EE Stefri?
not really....
Am I missing you?
I switch job position 6 months ago (still the same company) from Messaging system to HR system....
I was accustomed to appliance failures, not to people failure: HR network has bottleneck, and looks like a NFS server: not responding...still trying....
That is why I had no time to come to EE and participate to threads
I shall try to hook up again
Stefri
Am I missing you?
I switch job position 6 months ago (still the same company) from Messaging system to HR system....
I was accustomed to appliance failures, not to people failure: HR network has bottleneck, and looks like a NFS server: not responding...still trying....
That is why I had no time to come to EE and participate to threads
I shall try to hook up again
Stefri
ASKER
Hi,
If you have the time and are still interested in Outlook programming I would appreciate any thoughts you have on the following question:
https://www.experts-exchange.com/questions/21497211/Stefri-Logic-question-re-creating-a-MACRO-to-sort-sent-emails-to-user-selected-folders.html
From when I first started learning Outlook events and automation you were the one who helped me the most, so I value any insight you might have.
Sam
If you have the time and are still interested in Outlook programming I would appreciate any thoughts you have on the following question:
https://www.experts-exchange.com/questions/21497211/Stefri-Logic-question-re-creating-a-MACRO-to-sort-sent-emails-to-user-selected-folders.html
From when I first started learning Outlook events and automation you were the one who helped me the most, so I value any insight you might have.
Sam
Dim objNS As NameSpace
Private Sub Application_Startup()
Set objNS = Application.GetNamespace("
Set olInboxItems = objNS.GetDefaultFolder(olF
End Sub
Private Sub Application_Quit()
Set objNS = Nothing
End Sub
' sending mails function
Private Sub Application_ItemSend(ByVal
' your code
End Sub
' receiving mails function: items aded to inbox items collection
Private Sub olInboxItems_ItemAdd(ByVal
On Error Resume Next
If Item.Class = olMail Then
' your code
End If
End Sub
stefri