Rename Folder in Outlook Inbox

A

Access101

I would sure appreciate VBA for renaming a couple of folders in my Inbox.

I imagine I'm getting close with this:

Set objOutlook = CreateObject("Outlook.Application")
Set myNameSpace = objOutlook.GetNamespace("MAPI")
Set myInboxFolder = myNameSpace.GetDefaultFolder(olFolderInbox)
Set myFolders = myInboxFolder.Folders(6)
 
S

Sue Mosher [MVP-Outlook]

myFolders.Name = "new name"

would be the next step.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top