Inserting Symbols

Smurfit-Stone

Active Member
Joined
Dec 1, 2004
Messages
485
Hello Board,

I have a question....is there a way to have Excel insert a trademark symbol everytime a particular word is typed? I was thinking I could do something with or add to the Auto Correct feature. Thanks in advance.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
For Excel in general, or just in a specific workbook? And what's the word?
 

gobias

New Member
Joined
Feb 23, 2006
Messages
18
Use auto correct.

Tools==>Options==>Spelling==>AutoCorrect Options

Replace "your name" With "your name ™"

To get the ™, just type (tm) in a blank cell (auto correct will change it) and copy the text.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
To be workbook only, put this code in the Workbook Open event, replace word with whatever your word is:

Code:
Private Sub Workbook_Open()
Application.AutoCorrect.AddReplacement What:="word", Replacement:="word™"
End Sub

Put this in the Workbook BeforeClose event:

Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.AutoCorrect.DeleteReplacement What:="word"
End Sub

and I think this will work for a specific sheet, just change the sheet name and word:

Code:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
If Sh.Name = "Sheet1" Then
    Application.AutoCorrect.AddReplacement What:="word", Replacement:="word™"
Else
    Application.AutoCorrect.DeleteReplacement What:="word"
End If
End Sub
 

Smurfit-Stone

Active Member
Joined
Dec 1, 2004
Messages
485
Awesome.....will this code also work with a company logo. I mean can I paste a custom symbol in the macro?
 

Forum statistics

Threads
1,141,098
Messages
5,704,319
Members
421,338
Latest member
Pepess

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