Link Makros to Profile

J

jens m. guessregen

Hello,

is it possible to limk differnt makros to profiles?

I have Outlook 2003 with 3 different profiles and I want to have different
makros for every profile?

Best Jens
 
K

Ken Slovak - [MVP - Outlook]

Outlook 2003 only has one VBA project, no matter how many Outlook logons are
available.

You can use code in the Application_Startup() event handler to read the
Outlook user, but that wouldn't disable or enable macros based on the
Outlook profile. They all still would be available.

Using a COM addin that's installed in HKCU would give you code that's
Windows logon dependent. Each Windows logon could install a different addin.

If you got NameSpace.CurrentUser you could I guess have code in each macro
that checked for that value and exited the macro if it wasn't the correct
user but that seems like a real ugly kludge to me.
 
Top