Using AutoCorrect
would also mean that you can't really type anything
because every word with B or S would be changed.
An example of Conditional Formatting can be found in
http://www.mvps.org/dmcritchie/excel/event.htm#case
suggest reading starting at the top.
VBA is case sensitive.
The macro below is modified to your request.
Unlike regular macros this Event Macro will only apply to
the one worksheet. To install
right click on the sheet tab, view code, insert your coding.
The following will affect only columns B & D.
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
'David McRitchie, modified from 2000-08-08 example in
'
http://www.mvps.org/dmcritchie/excel/event.htm#case
Dim vText As String
Dim cRange As Range
Dim cell As Range
'***************** check range ****
Set cRange = Intersect(Range("B:B,D
"), Range(Target(1).Address))
If cRange Is Nothing Then Exit Sub
'**********************************
For Each cell In Target
' "Buy" or "Sell" or "Buy to Cover" or "Short Sell"
vText = cell.Value 'UCase(Trim(cell.Value))
Select Case Trim(UCase(cell.Value))
Case "B"
vText = "Buy"
Case "BC"
vText = "Buy to Cover"
Case "S"
vText = "Sell"
Case "SS"
vText = "Sell Short"
End Select
If vText <> UCase(Trim(cell.Value)) Then
Application.EnableEvents = False 'should be part of Change macro
cell.Value = vText
Application.EnableEvents = True 'should be part of Change macro
End If
Next cell
End Sub