Capitalize One Letter in Text String
Posted by JAF on May 17, 2001 3:58 AM
Hiya
I have a series of text strings in which I want to capitalise a specific letter, but leave the rest of the string intact.
Havign converted a list of customer names from upper case using the Proper function, anyone whose name contains either Mac or Mc comes out with the subsequent letter in lower case (e.g. Mcleod) when I want the letter following Mac or Mc to be capitalised (e.g. McLeod).
I can identify where in each text string the Mac or Mc appears by using =FIND, and I want to capitalise the letter that appears 3 after Mac and 2 after Mc.
Is there any way using VBA code to capitalise a specific letter in a text string and leave all others intact?
JAF