PDA

View Full Version : Solved: Changing user rights to folders via VBA



golden
02-10-2006, 12:37 AM
Hi all,

I am new here. i have a good knowledge of VBA with excel and word, but have never used it for outlook.

I am trying to change user permissions to a whole series of nested folders. I have found some code which loops through all the folders, but I have no idea of how to access or change user rights.

Can anyone help me ?

Thanks
Chris

Steiner
02-14-2006, 07:23 AM
Hmm, it looks as if this is not what you're supposed to do, because I can see the property UserPermissions in the Locale Window if I stop the code right after assigning a folder to a variable, but I can't find that property in the Object Catalogue.
So to me it looks like you aren't supposed to do that from VBA.

But I'm eager to be proven wrong on this one...

Daniel

MOS MASTER
02-14-2006, 11:54 AM
Hi Chris & Daniel! :hi:

If it is a local folder then its simply not possible AFAIK.

If it is a public folder then you can use the ACL Component with CDO. Quite difficult but this will get you started:
http://blogs.officezealot.com/legault/archive/2004/03/16/216.aspx

HTH :whistle:

golden
02-15-2006, 11:40 AM
Thanks Daniel and Joost.

I will look at that VB code and see if I can adapt it to my needs. It certainly is a lack in outlook-VBA, though I suppose I can understand the security issue.

Chris

MOS MASTER
02-15-2006, 11:54 AM
Hi Chris, :yes
You're welcome! :beerchug: