?
Solved

Changing right-click mini toolbar

Posted on 2009-02-14
1
Medium Priority
?
506 Views
Last Modified: 2012-05-06
I'm wondering if there is a way to change the mini toolbar in Word 2007 that pops up just above the context menu using VBA.  For instance, as I posted in a related question, I use the following code to create an underline button within the right-click context menu.  It would be even better if I could place this button in the mini toolbar.

Sub Addunderline()
    Dim cb As CommandBar
    Dim c As CommandBarButton
    Set cb = Application.CommandBars("Text")
    Set c = cb.FindControl(, , "VBAxUnderline")
    If c Is Nothing Then
        Set c = cb.Controls.Add(msoControlButton, 115, , 5, True)
        With c
            .Caption = "&Underline"
            .Style = msoButtonIconAndCaption
            .TooltipText = "Underline"
            .Tag = "VBAxUnderline"
        End With
    End If
End Sub
0
Comment
Question by:hsrstud
1 Comment
 

Accepted Solution

by:
hsrstud earned 0 total points
ID: 23647432
I've come to realize this is not possible.  Too bad.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Quickbooks hosting can do wonders to your enterprise but considering the points elaborated in the article which will help you to better analyze the outcomes. So scan your business, its needs and then move to the new world of limitless benefits.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question