Formating a symbol throughout existing workbook.

Croppin

New Member
Joined
Jun 14, 2005
Messages
11
I have a registered trademark symbol used throughout a multi-sheet workbook. It is not formatted as a superscript.

Is there an easy way to reformat just that particular symbol usage throughout the workbook? Or will I have to go and update each one individually?

I cannot get the trademark symbol to appear in the the replace dialogue box.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Damon Ostrander

MrExcel MVP
Joined
Feb 17, 2002
Messages
4,239
Hi Croppin,

It is not clear from your posting which font you are getting the symbol from and whether the reformatting you refer to is to superscript the symbol, or to change the font (because, for example, the ® symbol does exist in the Symbols font)

If it is the latter case, I suggest you just use the Unicode ® symbol from the Arial font. In fact, you can simply copy it directly from this text and use in the replace dialog box you mentioned since it is from this font that you are presumably using for the rest of the text in the cells.

Damon
 

dcardno

Well-known Member
Joined
Nov 20, 2002
Messages
558
Office Version
  1. 2013
Platform
  1. Windows
Try:
Code:
Sub SupAllR()

Dim rgFound    As Range
Dim rgLook     As Range
Dim rgLast     As Range

Set rgFound = Cells.Find(what:=Chr(174), after:=[a1], LookIn:=xlFormulas, LookAt:= _
                         xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)

Set rgLook = rgFound
Set rgLast = rgFound
Do
    If Cells.FindNext(rgLast) = rgLook Then Exit Do
    Set rgFound = Union(rgFound, Cells.FindNext(rgLast))
    Set rgLast = Cells.FindNext(rgLast)
Loop

Call SuperScript(rgFound)
End Sub

Sub SuperScript(rgOp As Range)

Dim cll        As Range
Dim i          As Integer

For Each cll In rgOp
    i = InStr(1, cll, Chr(174))
    cll.Characters(Start:=i, Length:=1).Font.SuperScript = True
Next cll

End Sub

This assumes that you are using the ®-symbol - ASCII 174. If not, you will have to make the appropriate substitutions. The routine will crash if there are no cells with the symbol it is looking for
 

Forum statistics

Threads
1,176,489
Messages
5,903,366
Members
435,021
Latest member
rcasey1227

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top