Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-03-2018, 05:42 PM
Chayes Chayes is offline Making exceptions to PROPER Windows XP Making exceptions to PROPER Office 2003
Advanced Beginner
Making exceptions to PROPER
 
Join Date: May 2012
Posts: 79
Chayes is on a distinguished road
Default Making exceptions to PROPER

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 ,
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making exceptions to PROPER Need help w/ IF function that has multiple exceptions! 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft