script to create a folder in "INBOX"
Maybe the script isn't running at all? A MsgBox statement will tell you. Only published forms will run code.
Or maybe you have an On Error Resume Next statement blocking the error that these statements would raise:
Set outApp.ActiveExplorer.CurrentFolder = mpfInbox
Set mpfNew = mpfInbox.Folders.Add("Archief")
I would strongly suggest that you add an Option ******** statement to the declarations section of your script and then add Dim statements to each procedure to declare your variables before using them. Part of your problem is that your code uses variables that haven't been instantiated and uses more than one variable for the same object.
Also, if you're trying to navigate away from a folder and back again as part of setting up folder home page, that needs to happen *after* the FHP settings are applied, not before.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
|