A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Outlook » Calendar
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

macro buttons



 
 
Thread Tools Display Modes
  #1  
Old January 28th, 2010, 01:12 AM posted to microsoft.public.outlook.calendaring
strach
external usenet poster
 
Posts: 7
Default macro buttons

In Outlook 2003 I used to add buttons for my macros to the bar of the
message window. Those macros handle moving current message to certain
folders (default Move to Folder button was not convenient enough). Once
upgraded to version 2007, my buttons are now moved to Add-Ins menu of the
Ribbon and I'm fine with it (although they're one click further now to
reach). How do I add more macro buttons to the Add-Ins? I only found a way
to add them to Quick Access Toolbar which is not feasible since the captions
appear there only when mouse is over, and I need them displayed permanently.
Thanks in advance.

  #2  
Old January 28th, 2010, 02:39 PM posted to microsoft.public.outlook.calendaring
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 232
Default macro buttons

You still can access your custom toolbar by name with VBA. For example, if I
have a custom toolbar named "Test," this code will add a new command on the
Add-ins tab tp run a macro named "macro_name":

Dim cb As CommandBar
Dim cbb As CommandBarButton
Set insp = Application.ActiveInspector
Set cb = insp.CommandBars("Test")
cb.Visible = True
Set cbb = cb.Controls.Add(msoControlButton)
cbb.Caption = "My Macro"
cbb.OnAction = "macro_name"I can add a new button to run the

'FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/comm....program_v ba

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



"strach" wrote:

In Outlook 2003 I used to add buttons for my macros to the bar of the
message window. Those macros handle moving current message to certain
folders (default Move to Folder button was not convenient enough). Once
upgraded to version 2007, my buttons are now moved to Add-Ins menu of the
Ribbon and I'm fine with it (although they're one click further now to
reach). How do I add more macro buttons to the Add-Ins? I only found a way
to add them to Quick Access Toolbar which is not feasible since the captions
appear there only when mouse is over, and I need them displayed permanently.
Thanks in advance.

.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.