Jeepers321
Technical User
I am trying to have a button on my spreadsheet that when the user clicks it that it post the spreadsheet into an exchange folder on the our intranet. I believe I am almost there but for the life of me I don't know why it still request that the user selects a folder. Here is the code I have so far.
Private Sub BtnPost_Click()
Dim myOlApp As Outlook.Application
Dim myNameSpace As NameSpace
Dim myFolder As MAPIFolder
Set myOlApp = CreateObject("Outlook.Application"
Set myNameSpace = myOlApp.GetNamespace("MAPI"
Set myFolder = myNameSpace.Folders("Public Folders" _
.Folders("All Public Folders" _
.Folders("Strategic Development" _
.Folders ("Assessment"
ThisWorkbook.Post myFolder
End Sub
myFolder is showing as Assessment but why doesn't it go ahead and send it there.
Private Sub BtnPost_Click()
Dim myOlApp As Outlook.Application
Dim myNameSpace As NameSpace
Dim myFolder As MAPIFolder
Set myOlApp = CreateObject("Outlook.Application"
Set myNameSpace = myOlApp.GetNamespace("MAPI"
Set myFolder = myNameSpace.Folders("Public Folders" _
.Folders("All Public Folders" _
.Folders("Strategic Development" _
.Folders ("Assessment"
ThisWorkbook.Post myFolder
End Sub
myFolder is showing as Assessment but why doesn't it go ahead and send it there.