Solved

Add Objects Alignment to Visio 2010 Ribbon

Posted on 2013-12-09
10
955 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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 I’ll describe a mashup of containers and lists that meet a real-world need. Prior to reading this ar…
Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

21 Experts available now in Live!

Get 1:1 Help Now