Article ID: 182613
Article Last Modified on 3/1/2004
Sub CommandButton1_Click()
' Set the NameSpace object.
Set olns = Item.Application.GetNameSpace("MAPI")
' MyFolder is a variant variable whose subtype is "object" since
' a Set statement is used.
Set MyMailbox = olns.Folders("Mailbox - John Smith")
Set Myfolder = MyMailbox.Folders("FolderName")
' Correctly sets the folder where the "sent item" will be stored.
Set Item.SaveSentMessageFolder = MyFolder
' Sends the current mail item.
Item.Send
End Sub
180826 OL98: Resources for Custom Forms and Programming
182349 OL98: Custom Forms and Outlook Solutions
Additional query words: OutSol OutSol98
Keywords: kbprogramming kbprb KB182613