vba equivalent

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

What is the VBA equivalent of the 'Actions->New Mail Message Using->...'
menu option?

Thanks

Regards
 
You can run any toolbar command with Explorer.CommandBars.Find(, ID).Execute but what exactly is it you're trying to do?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
I am trying to create a new email using a specific html stationery.

Thanks

Regards


You can run any toolbar command with Explorer.CommandBars.Find(, ID).Execute
but what exactly is it you're trying to do?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
PS: I have several stationeries and I want to give users option to choose,
by clicking on the relevant toolbar button.

Thanks

Regards

You can run any toolbar command with Explorer.CommandBars.Find(, ID).Execute
but what exactly is it you're trying to do?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
If the user has already used that stationery, so that the name of the stationery appears on the Actions menu, you can use:

strStatName = "Name of the stationery"
Set objCB = Explorer.CommandBars.FindControl(, 31146)
set objCBStat = objCB.CommandBar.Controls(strStatName)
If Not objCBStat Is Nothing Then
objCBStat.Execute
End If

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top