PC Review


Reply
Thread Tools Rate Thread

Command Bar Controls - Mail Item In Draft Folder OL2K

 
 
John Gregory
Guest
Posts: n/a
 
      30th Jun 2005
How can I access the OL2K menus on a new mail item in the Draft
folder, for Format and Plain Text? The following does not work, bu
hopefully show what I am trying to do. I want to send all mail item
plain text without having to remember to click the menus Format an
Plain Text before I click the Send button for new mail items create
in VBA

Sub MailItem_Menus_CommandBars(
Dim olApp As Outlook.Applicatio
Dim olMailItm As Outlook.MailIte
Dim olDraftItem As Objec
Dim objBar As Office.CommandBa
Set olApp = New Outlook.Applicatio
Set olMailItm = olApp.CreateItem(olMailItem
With olMailIt
.To = "(E-Mail Removed)
.Subject = "Msg Serial Number 0002
.Body = "Msg Body created by VBA.
.Sav
.Display (False) 'Display or Sen
End Wit
Set olDraftItem = olApp.ActiveInspector.CurrentIte
'Set objBar = objItem.CommandBars("Mail Item") 'WRON
'Set objBar = objItem.CommandBarControls("62372716") WRON
'I want to activate this mail item menu controls fo
'Format and then "Plain Text"
olDraftItem.Sav
'olApp.Qui
Set olApp = Nothin
Set olMailItm = Nothin
End Su

Thanks Joh

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting item in Draft folder John Microsoft Outlook VBA Programming 2 27th Dec 2008 09:42 PM
Sent item appear in draft folder, has the mail been sent or not? =?Utf-8?B?c25vdw==?= Microsoft Outlook Discussion 1 3rd Nov 2007 05:33 PM
Send OL Mail Item Plain Text Only-VBA in OL2K John Gregory Microsoft Outlook VBA Programming 6 1st Jul 2005 07:55 AM
re:Command Bar Controls - Mail Item In Draft Folder OL2K John Gregory Microsoft Outlook VBA Programming 0 30th Jun 2005 01:47 AM
OL2K: Copy Received E-Mail Names To New Contacts Folder rptmo1 Microsoft Outlook Contacts 1 25th Apr 2004 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 PM.