Solved

Add Objects Alignment to Visio 2010 Ribbon

Posted on 2013-12-09
10
961 Views
Last Modified: 2014-01-30
Hello Experts-

I am looking for a way to add the individual Objects Alignment MSO's to the Visio 2010 Ribbon.  In Visio 2010, you have to go through a gallery (Position) to get to the alignment options:
Align Left
Align Center
Align Right

I have attempted to edit the Customized UI file with the mso controls but I have had no luck, it appears the PositionMenu is the only mso I can use and I can't use the ObjectsAlignLeft, ObjectsAlignRight, etc.

Any thoughts on having a Macro that could load the custom menu items or perhaps an update to the visio.officeui file?  We currently do not have Microsoft Visual Studio to build anything.

Thanks-
Luke
0
Comment
Question by:LukeSteele
  • 5
  • 5
10 Comments
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 39708448
You can add the align buttons to any ribbon tab directly from the UI... no programming or editing required.

File>Options>Customize Ribbon, then select All Commands in the left pane and all of the align functions will be visible. In the right pane select the tab where you'd like to place them (or create your own custom tab).
0
 

Author Comment

by:LukeSteele
ID: 39708462
Hi Scott-

That is where I started but all I could find there was the Text Alignment and the full Position Menu Option.  I would like to get the Align Shapes Sub Menu MSO's directly onto the ribbon where I do not have to go through the Position Gallery (mimic's what Visio 2007 used to be).

Thanks-
Luke
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 39708503
Ah -- my mistake. I saw Align Left, Align Center, etc. but didn't notice that they were just the text align functions and not the shape align functions. I have to leave for a client's office now... I'll see whether I can come up with something else later.
0
 

Author Comment

by:LukeSteele
ID: 39708658
Thank you for looking into this Scott.
0
 

Author Comment

by:LukeSteele
ID: 39799794
Hello Scott-

Any luck on finding out more information on this?

Thanks-
Luke
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 30

Accepted Solution

by:
Scott Helmers earned 500 total points
ID: 39816151
Luke,

Sorry for the very long delay...

I don't have an answer to accomplish getting the object align functions onto a ribbon tab directly, but you could create a macro for each required align function and then assign a keyboard shortcut to each macro. For example, this code will align middle
Sub AlignMiddle()
    If ActiveWindow.Selection.Count >= 2 Then
        ActiveWindow.Selection.Align visHorzAlignNone, visVertAlignMiddle, Fals
    Else
        MsgBox "Please select two or more shapes and run macro again."
    End If
End Sub

Open in new window

You could also place buttons on each page and launch macros by clicking the buttons but that is probably too awkward, especially when your goal of getting buttons on the ribbon is the correct idea.

Scott
0
 

Author Closing Comment

by:LukeSteele
ID: 39816222
Thanks for looking into this Scott.  I kinda figured it couldn't be done from what I was looking at.
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 39819720
Luke -- I asked a couple of other Visio experts in case any of them knew a trick to accomplish what you want. None do, but one of them, John Goldsmith, had an interesting alternative given that adding specific align functions to the ribbon isn't an option:
=  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =
Could you use the old Align Objects dialog?  At least the dialog stays open so you can select both horizontal and vertical options:align shapes dialogYou can pop the following into the UserCustomUI field for the quick access bar:

<mso:customUI xmlns:mso="http://schemas.microsoft.com/office/2006/01/customui">
<mso:ribbon>
<mso:qat>
<mso:documentControls>
<mso:control idQ="mso:AlignDialog" visible="true"/>
</mso:documentControls>
</mso:qat>
</mso:ribbon>
</mso:customUI>
=  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =  =
0
 

Author Comment

by:LukeSteele
ID: 39820642
Perfect, thanks Scott, I will look into this as well.  This might be better as I could have that popup window sitting on my 2nd monitor and can click on those.
0
 
LVL 30

Expert Comment

by:Scott Helmers
ID: 39820695
I'm glad it looks like a workable idea -- I'll let John Goldsmith know.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you ever created a custom Visio stencil – a collection of your own unique master shapes – and then created a drawing by dragging masters onto the drawing page? Have you then made changes to the stencil master and wondered why the shapes on the …
A recent Visio zone question asked how to use the data in an Excel file to create a Visio Gantt chart -- and then to dynamically update the Gantt chart. The good news is that the Viso Gantt Chart wizard can be automated. The bad news is that the…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now