A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Link Makros to Profile



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 13th 07, 05:18 PM posted to microsoft.public.outlook.program_vba
jens m. guessregen
external usenet poster
 
Posts: 4
Default Link Makros to Profile

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


  #2  
Old January 15th 07, 03:57 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Link Makros to Profile

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"jens m. guessregen" wrote in message
...
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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I undo link to hotmail link from IE Rob Outlook - Installation 1 December 21st 06 05:33 AM
outlook link protocol - link mangled by browser or Outlook? TroyWolf Outlook - General Queries 0 December 20th 06 08:34 PM
How to put a url link under a word link? jenny Outlook Express 6 December 10th 06 03:36 PM
Can I add a link from the menu to link a document to a contact? abepop Outlook - Using Contacts 0 August 28th 06 04:31 PM
Newsgroup link won't open IE; OE link will POP Outlook Express 10 June 20th 06 11:48 AM


All times are GMT +1. The time now is 06:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.