Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Office 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Applying Bold Italics.
by Allen Wyatt
(last updated December 1, 2018)
As I am formatting documents, there are many times I need a particular word or passage to be formatted in both bold and italics. Word includes tools (on the Home tab of the ribbon) that apply bold and italics, but not bold italics. I got tired of doing two clicks, so I created my own tool to apply both formats at once. The resulting macro can then be assigned to the Quick Access Toolbar.
The simplest way to do this is with a macro:
Sub BoldItalics1() Selection.Font.Bold = True Selection.Font.Italic = True End Sub
This macro turns on the attributes, but it doesn't do any toggling. In other words, you can't turn off bold italics by using the same macro, as you can with the individual Bold and Italics tools. This led to the "next generation" macro, which essentially checks to see the state of the selected text before making any changes:
Sub BoldItalics2() With Selection.Font If .Bold And .Italic Then .Bold = False .Italic = False Else .Bold = True .Italic = True End If End With End Sub
The macro checks to see if the Bold and Italic properties are set for the selection. If so, then it turns off those properties; if not, it sets them to True. The result is that your selection will be set either to "full" bold and italic or those properties will be turned off—you won't end up with the properties mixed.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12122) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365. You can find a version of this tip for the older menu interface of Word here: Applying Bold Italics.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Word provides a built-in shortcut to change the case of a text selection. Understanding how that shortcut works (and the ...Discover More
If you need to format a number so that it appears as currency, it is not as easy to do in Word as it is in Excel. You can ...Discover More
When you open documents that were created a long time ago on a system far, far away (sounds almost epic, doesn't it?), ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.