I have 5 accounts in outlook and have 20 favorite folders taken from those that I would like to appear in the same order each time I open outlook. The order they appear each time is pretty random. Is there a way to run a script on opening that will sort the folders into same order each time I open
I have looked through the Office VBA reference and cant find anything there that helps
You can sort the folders in the Outlook UI by explicitly setting the
PR_SORT_POSITIONproperty on each subfolder, for example, the following code shows the sort position of each folder in Outlook:To set up the sort order you need to use the PropertyAccessor.SetProperty method which sets the property specified by
SchemaNameto the value specified byValue. If the property does not exist and theSchemaNamecontains a valid property specifier, thenSetPropertycreates the property and assigns the value specified byValue. If the property does exist andSchemaNameis valid, thenSetPropertyassigns the property with the value specified byValue.