![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm trying to wrap my head around the outlook objects. I'm sure this is a
stupid question but I'm having trouble grasping when I need to declare objects and when I don't. Why don't I need a MapiFolder object to view properties such as Name of the Current Folder below? Confused.... Carol Sub TestOfExpolorerObject() Dim objApp As Outlook.Application Dim objNms As Outlook.NameSpace Dim objExplorer As Outlook.Explorer Set objApp = CreateObject("Outlook.Application") Set objNms = objApp.GetNamespace("Mapi") Set objExplorer = objApp.ActiveExplorer Debug.Print objExplorer.CurrentFolder.Name Set objApp = Nothing Set objNms = Nothing Set objExplorer = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a UserProperty to a MAPIFolder? | Jeff | Outlook and VBA | 4 | November 8th 06 10:10 PM |
Help : Outlook.MAPIFolder, VBA macros | lerneree | Outlook - General Queries | 1 | September 6th 06 01:07 PM |
Help -Outlook.MAPIFolder, VBA macros | lerneree | Outlook and VBA | 1 | September 6th 06 12:59 PM |
Outlook.MAPIFolder, VBA macros | lerneree | Outlook - Using Forms | 0 | September 6th 06 10:18 AM |
MapiFolder Items ItemChange is not firing | AtulSureka | Outlook - Using Forms | 1 | February 6th 06 04:32 PM |