A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

change case function



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 3rd 07, 03:11 PM posted to microsoft.public.outlook.program_vba
Charlie
external usenet poster
 
Posts: 68
Default change case function

I thought there was a function that would let me case the case of a text
string to 'proper case' ...that would capitalize the first letter of each
word. I want to run a macro to change my contact names to this, right now
some have the last name all capitalized.
does anyone know how to do this?
thanks,
ck

  #2  
Old May 4th 07, 07:13 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default change case function



UCase is the function you're looking for.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Thu, 3 May 2007 06:11:00 -0700 schrieb Charlie:

I thought there was a function that would let me case the case of a text
string to 'proper case' ...that would capitalize the first letter of

each
word. I want to run a macro to change my contact names to this, right now
some have the last name all capitalized.
does anyone know how to do this?
thanks,
ck

  #3  
Old May 4th 07, 07:18 AM posted to microsoft.public.outlook.program_vba
Michael Bednarek
external usenet poster
 
Posts: 15
Default change case function

On Thu, 3 May 2007 06:11:00 -0700, Charlie wrote in
microsoft.public.outlook.program_vba:

I thought there was a function that would let me case the case of a text
string to 'proper case' ...that would capitalize the first letter of each
word. I want to run a macro to change my contact names to this, right now
some have the last name all capitalized.
does anyone know how to do this?


Doesn't StrConv(strText,vbProperCase) do most of what you want? You'll
have to deal with special cases like "O'Brian", "McDonalds", "de la
Rossa", "von Braun" yourself.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Addresses Case Sensitive? CWLee Outlook Express 6 May 20th 06 01:20 AM
Changin case of alphabet in Contacts Tim Outlook - Using Contacts 1 May 8th 06 03:55 PM
Outlook PST case tonrado Outlook - General Queries 5 February 22nd 06 05:28 PM
How to sychronize in this case: Josie Walsh Outlook - General Queries 2 February 4th 06 09:22 PM
How to sychronize in this case: Josie Walsh Outlook - Using Contacts 2 February 4th 06 09:22 PM


All times are GMT +1. The time now is 07:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.