Hope the file uploaded OK.
I just do not understand why this Simple Code fails at the first hurdle
So basic I am sure but like to understand why this fails - i.e. not just the solution
[ATTACH=CONFIG]56563[/ATTACH]
Code
Private Sub CommandButton1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderContacts) ' <<<<<<<<<<<<Fails here with INVALID PROCEEDURE CALL OR ARGUMENT
Set myNewFolder = myFolder.Folders("IMS")
'The following Visual Basic for Applications example returns the first folder.
Set myNewFolder = myFolder.Folders(1)
End Sub