Solved

Add Objects Alignment to Visio 2010 Ribbon

Posted on 2013-12-09
10
981 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Visio Web Page Search Function Skips -1 6 172
Can I crop a diagram in Visio 2013? 9 1,996
MS 365 & Visio 4 79
Export Visio Shape Data using VBA to a text file 6 1,057
The Question Several times in recent years, someone has posted a question at EE asking whether they could display the Windows directory structure – folders and subfolders – using Visio. When one person specifically asked about displaying directory …
Periodically someone asks me whether there’s a way to automatically convert all of the pages in a Visio drawing to PowerPoint slides. There have even been a few times when I’ve wanted to do that myself but I never really had enough incentive to figu…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

735 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