Solved

Add Objects Alignment to Visio 2010 Ribbon

Posted on 2013-12-09
10
996 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 

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
 
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

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

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 …
The ability to add structure to Visio diagrams using containers, lists and callouts is one of my favorite features in Visio 2010. In this article we’ll examine lists. We’ll explore containers and callouts in separate articles. Prior to reading th…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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