I posted this in the outlook forum and haven't heard anything. I'm sure the
code would be the same in any offce program.
******************************************************
I have a macro that i build for someone that notifies them of report request
hitting a public folder. I've installed the macro on three employee's
computers here and commented out the line that starts the macro on two of
them.
The reason I need it on these other computers is if the person who normally
assigns reports is out of the office we need someone else to moniter the
request while he is gone.
Is there some way for the users to be able to easily enable and disable the
macro though a menu selection or button?
I don't really like the idea of showing them how to go into the VBE and
comment out the line that triggers the macro.
Public WithEvents myOlItems As Outlook.Items
Private Sub Application_Startup()
'****This next line is the one I comment out to disable the macro******
Set myOlItems = Outlook.Application.GetNamespace("MAPI").Folders("Public
Folders").Folders("All Public
Folders").Folders("CompanyName").Folders("PTI-Data Resources").Items
End Sub
Private Sub myOlItems_ItemAdd(ByVal item As Object)
'These lines pull info from email
--
Billy Rogers
Dallas,TX
Currently Using Office 2000
Bookmarks