Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Word 2013 custom ribbon to toggle an advanced option on and off

Posted on 2016-08-13
5
Medium Priority
?
154 Views
Last Modified: 2016-08-24
Hello,
We have some users that have paragraph line spacing formatting issues with certain Word files.  We discovered the issue to be a default setting in Word that uses HTML paragraph auto spacing.  When we check the box to turn that feature off, the formatting issue is resolved.

Since this does not affect every document, it is troublesome for the user to go to File | Options | Advanced for the documents where this fix is needed.  I understand that Microsoft provides the Custom UI XML tool to create custom Ribbon tabs for Word but I am novice with it.  

So my question, is it possible to create a custom Ribbon for Word 2013 that has a button that can toggle the feature below on and off with a single click?  If so, what are the steps to accomplish that?

Word Option
0
Comment
Question by:bigeven2002
[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
  • 3
  • 2
5 Comments
 
LVL 18

Expert Comment

by:xtermie
ID: 41765244
  1. Right Click on the Ribbon
  2. Select Customize the Ribbon
  3. In the Choose commands from pane, select All Commands
  4. Locate your command
  5. Select the tab you want to add it to on the right *i.e. Home
  6. Click on New Group and name the group
  7. Click Add to place the command to your new group
  8. Rename the command and/or give it a nice button
  9. Click OK

I would suggest you read https://support.office.com/en-us/article/Customize-the-ribbon-in-Office-00f24ca7-6021-48d3-9514-a31a460ecb31 for more info
and that you add this button to the quick access toolbar (qat) and not the ribbon
Same steps but rather than right clicking on the ribbon you right click on the QAT and select More commands
0
 
LVL 17

Author Comment

by:bigeven2002
ID: 41766121
Thank you for the reply, but that option does not exist in that list.  Any other suggestions?
0
 
LVL 18

Accepted Solution

by:
xtermie earned 2000 total points
ID: 41766510
Try this in a macro and assign this to the button in the quick access toolbar?
Sub test()
ActiveDocument.Compatibility(wdDontUseHTMLParagraphAutoSpacing) = True
End Sub

Open in new window

0
 
LVL 17

Author Closing Comment

by:bigeven2002
ID: 41767976
Thanks!  That is what I was looking for.
0
 
LVL 18

Expert Comment

by:xtermie
ID: 41768295
Great...glad I could help :)
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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.
New style of hardware planning for Microsoft Exchange server.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

604 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