![]() |
#1
|
|||
|
|||
![]()
Hi All
I use this code to force Proper case in columns F:H Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub On Error Resume Next If Not Intersect(Target, Range("F:H")) Is Nothing Then Application.EnableEvents = False Target = StrConv(Target, vbProperCase) Application.EnableEvents = True End If On Error GoTo 0 End Sub This works fine , but sometimes fails in certain circumstances , particularly after symbols. For example , after brackets. The code in this case forces (Content) to (content). Can someone help with an amendment to the code so that letters following symbols are left as capitals? Grateful for any advice. Very Best Wishes , |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
batota06 | Excel | 2 | 06-11-2018 01:53 AM |
Exceptions on my documents | Martinod | Word | 1 | 03-12-2018 11:53 AM |
Word Autocorrect exceptions not working. | Spotofpaint | Word | 0 | 10-23-2014 06:14 PM |
Autocorrect Exceptions not working | danvdr | Word | 6 | 05-26-2014 09:37 PM |
Exceptions for 'Capitalize first letter of sentences' | gazpacho | Word | 1 | 01-12-2012 11:43 AM |