Forum Discussion

Ryan_Holtz's avatar
Ryan_Holtz
Copper Contributor
May 07, 2022
Solved

Excel Autocorrect Formatting

Is there a way to have Excel autocorrect the formatting of a word or phrase to italics? For example I'm trying to correct CAL to CALIFORNIA in italics. In Word, it's pretty straightforward, but there...
  • HansVogelaar's avatar
    HansVogelaar
    May 07, 2022

    Ryan_Holtz 

    This doesn't exist in Excel since, unlike Word, text processing is not its primary purpose.

    You might use VBA code. In the attached workbook, Sheet1 will replace some abbreviations and italicize the replacement matching the entire cell. Sheet2 will do the same for part of the cell.

    You'll have to allow macros.

    The code is in the worksheet modules - right-click a sheet tab and select View Code from the context menu to see and edit it.

Resources