Question about Proper Case

KDS14589

Board Regular
Joined
Jan 10, 2019
Messages
205
Office Version
  1. 2016
Platform
  1. Windows
VBA Code:
cll.Value = WorksheetFunction.Proper(cll.Value)

I use this code in several areas.

I just noticed in the data results that a letter after an apostrophe is capitalized when it shouldn’t be. (ie: Pandora’S Box-should be Pandora’s Box)

Is there a correction to the code or will I have to hand change every instance?
 
use this custom function:
Code:
Public Function ProperCase(ByVal pvWord)
'vbProperCase=3
ProperCase = StrConv(pvWord, vbProperCase)
End Function
 
Upvote 0
Solution

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
Back
Top