LockUserChanges will not save after calling .apply and .save - using VB6

Answered LockUserChanges will not save after calling .apply and .save - using VB6

  • Friday, May 11, 2012 7:01 PM
     
     
    Set ns = Application.GetNamespace("MAPI")
    ns.Logon
    Set inbox = ns.GetDefaultFolder(olFolderInbox)
    inbox.CurrentView.LockUserChanges = True
    inbox.CurrentView.Apply
    inbox.CurrentView.Save

    Help?

All Replies

  • Friday, May 11, 2012 7:20 PM
    Moderator
     
     

    Are you saying that LockUserChanges is still False after you set it to True?  Otherwise, if you expect that users cannot make changes if it is set to True, they CAN - but the changes won't be saved.


    Eric Legault
    MVP (Outlook)
    About me...

  • Friday, May 11, 2012 7:25 PM
     
     
    Yes it is still false afer I set it to true.

    chuck Taylor

  • Friday, May 11, 2012 7:50 PM
    Moderator
     
     Answered
    If you are running the code under your user context in your Inbox, you of course have full permissions to make changes. It only applies to other users accessing a delegated folder or Public Folder.

    Eric Legault
    MVP (Outlook)
    About me...