Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Proper Case Odditiy

Excel's Proper() function converts letters following an apostrophy to upper
case, which is almost never what's wanted. For example "don't" becomes
"Don'T".

Is there any excel or VBA function that works "properly", or do I have to
write my one proper case function?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Proper Case Odditiy

Try:

StrConv("don't",vbProperCase)

in VBA

--
Jim Rech
Excel MVP
wrote in message
...
Excel's Proper() function converts letters following an apostrophy to
upper
case, which is almost never what's wanted. For example "don't" becomes
"Don'T".

Is there any excel or VBA function that works "properly", or do I have to
write my one proper case function?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Proper Case Odditiy

? strconv("DON'T",vbProperCase)
Don't
? strConv("don't",vbProperCase)
Don't



--
Regards,
Tom Ogilvy


wrote in message
...
Excel's Proper() function converts letters following an apostrophy to

upper
case, which is almost never what's wanted. For example "don't" becomes
"Don'T".

Is there any excel or VBA function that works "properly", or do I have to
write my one proper case function?

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Proper Case Odditiy

Jim Rech wrote

Try:

StrConv("don't",vbProperCase)

in VBA


Thank you! I was having the same problem converting text from a userform
using Payee1 = Application.Proper(UserForm1.TextBox1.Text)
I can now use Payee1 = StrConv(UserForm1.TextBox1.Text, vbProperCase) and
input like sam's club no longer comes out Sam'S Club.

--
David
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change from upper case to proper case in excel 2002 CT Man[_2_] Excel Discussion (Misc queries) 8 January 8th 08 06:14 PM
excel'03 how to convert a column from upper case to proper case sharie palmer Excel Discussion (Misc queries) 1 January 30th 06 11:50 PM
Excel: How do I change all upper case ss to proper case? Moosieb Excel Worksheet Functions 3 January 13th 06 12:45 AM
Changing Upper case to Proper Case Mountain Excel Worksheet Functions 1 January 13th 05 10:37 PM
Proper Case with . graham gordon Excel Programming 2 September 23rd 03 03:50 AM


All times are GMT +1. The time now is 09:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"