I have a code that when the user clicks off the cell it automatically sets it to 'PROPER'.
Can i set it to exclude coloums suchs as D & N?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngSrc As Range
On Error GoTo err_handler
Application.EnableEvents = False
For Each rngSrc In Target.Cells
With rngSrc
If Not .HasFormula Then .Value = StrConv(.Value, vbProperCase)
End With
Next rngSrc
clean_up:
Application.EnableEvents = True
Exit Sub
err_handler:
MsgBox Err.Description
Resume clean_up
End Sub
Bookmarks