Execute Outlook 2003 Command Bar in VBA

  • Thread starter Thread starter Martin Hegenbarth
  • Start date Start date
M

Martin Hegenbarth

Hi NG,

I need to change the Mailformat from HTML to RTF in VBA.


e.g. objInspector.CommandBars("Menu Bar").Controls ("Format") XXXX
..execute

but I miss the correct ID / spelling... for the Menu in the
Forward-Form. (There's a Dropdown-Menu to choose
PlainText/RichText/HTML)



Thanks for any hint !

Martin
 
Hey bud,
I don't know the exact name either, but what you could do, is use a
loop and go through the collection of all command bars and printout the
names and then look for the one u want. :p

Khalifeh
 
Hi Khalifeh,

I tried this but got only the ID's for the standard Bars - not for the
send-form (and only there's the DropDownMenu)

is there something special I've to look for?
 
Instead of manipulating command bar buttons, you could change the BodyFormat
property of the current MailItem object. Way easier!
 
Back
Top