In Microsoft Outlook 2000.
After modifying the VBA code, do I need to close-save-open Outlook so that the it will run on the new code? Is there any compiling behind?
You do not need to save the Outlook session until you close it. Of course, you can save and compile the code at any time. What version are you running?
In the VBE, go to Debug, Compile project. If there are errors in your code, it will sport them. This is the biggest advantage to compiling VBA.
I've never encountered what you are saying, though I understand it. For some reason, Outlook is remembering your previous version, so perhaps compiling it is the answer.
I tried what you said but "Compile Project1" was still grey.
I think I should tell you that all my code is under "VbaProject.OTM - ThisOutlookSession (Code)
Put my mouse cursor in following Sub and then press F5, I can run it:
Private Sub try()
MsgBox "aaaaa"
End Sub
It can fire "Sub objItems_ItemAdd(ByVal Item As Object)" when new email comes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.