How to point to Inbox subfolder on Outlook using VBA

Hi,
I have  subfolder under the "Inbox" name "followup". How do i point it to the subfolder "followup" ??

'Below is the code i have currently to point to "Inbox"
Dim inBox As Outlook.MAPIFolder
Set inBox = OlApp.GetNamespace("Mapi").GetDefaultFolder(olFolderInbox)
tangteng78Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Chris BottomleyConnect With a Mentor Commented:
i.e.

fldrs points to inbox\followup and using either

sub = fldrs.folders("fred") OR
sub = inbox.folders("followup").folders("fred") OR
sub = OlApp.GetNamespace("Mapi").GetDefaultFolder(olFolderInbox).folders("followup").folders("fred")

after any of the above sub will point to
inbox\follwup\fred

Chris
0
 
Chris BottomleyCommented:
Use .folders, and repeat down through the structure for a sub folder of fldr

Chris
Dim fldr As Outlook.MAPIFolder
Set fldr = OlApp.GetNamespace("Mapi").GetDefaultFolder(olFolderInbox).folders("followup")

Open in new window

0
All Courses

From novice to tech pro — start learning today.