PC Review


Reply
Thread Tools Rate Thread

Changing to lower case

 
 
Scott Brooks
Guest
Posts: n/a
 
      2nd Mar 2007
I have a 7000+ line worksheet that is ballooned into a very large
address book. Over the years some of the addresses were entered in all
caps, others (~6000) in corect case. Is there a way that I can
automatically change to proper case, ala MS Word? I am using Excel
2003, but can use Excel 2007.

Thanks for the advice.

-Scott
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      2nd Mar 2007
See

http://www.mvps.org/dmcritchie/excel/proper.htm

In article <(E-Mail Removed)>,
Scott Brooks <> wrote:

> I have a 7000+ line worksheet that is ballooned into a very large
> address book. Over the years some of the addresses were entered in all
> caps, others (~6000) in corect case. Is there a way that I can
> automatically change to proper case, ala MS Word? I am using Excel
> 2003, but can use Excel 2007.
>
> Thanks for the advice.
>
> -Scott

 
Reply With Quote
 
=?Utf-8?B?QmlsbHkgTGlkZGVs?=
Guest
Posts: n/a
 
      2nd Mar 2007
Scott

You could use this macro

Option Explicit

Dim rsp, c, sep As String, sp, rgt As String, tmp As String
Dim i As Integer, L As Integer, count As Integer
Dim cnt As Integer, rng As Range

Sub changeCase()
' Amended by Gord Gibbon MSVP
' so not to overwrite formulas in selection

rsp = InputBox("Enter U, P or L to choose Upper, Proper or Lower case", _
"Choose Case to Alter Text", "p", 100, 100)
For Each c In Selection
If UCase(rsp) = "U" Then
c.Formula = UCase(c.Formula)
ElseIf UCase(rsp) = "P" Then
c.Formula = Application.WorksheetFunction.Proper(c.Formula)
ElseIf UCase(rsp) = "L" Then
c.Formula = LCase(c.Formula)
End If
Next
End Sub

Regards
Peter
"Scott Brooks" wrote:

> I have a 7000+ line worksheet that is ballooned into a very large
> address book. Over the years some of the addresses were entered in all
> caps, others (~6000) in corect case. Is there a way that I can
> automatically change to proper case, ala MS Word? I am using Excel
> 2003, but can use Excel 2007.
>
> Thanks for the advice.
>
> -Scott
>

 
Reply With Quote
 
Scott Brooks
Guest
Posts: n/a
 
      2nd Mar 2007
Thanks for the macro, that worked a bit too well, now I have to change
Cpa, Llc and some email addresses, but a find and replace has still
saved me MANY hours this weekend. Thanks again.

~Scott

On Fri, 2 Mar 2007 03:08:03 -0800, Billy Liddel
<(E-Mail Removed)> wrote:

>Scott
>
>You could use this macro
>
>Option Explicit
>
>Dim rsp, c, sep As String, sp, rgt As String, tmp As String
>Dim i As Integer, L As Integer, count As Integer
>Dim cnt As Integer, rng As Range
>
>Sub changeCase()
>' Amended by Gord Gibbon MSVP
>' so not to overwrite formulas in selection
>
>rsp = InputBox("Enter U, P or L to choose Upper, Proper or Lower case", _
> "Choose Case to Alter Text", "p", 100, 100)
>For Each c In Selection
> If UCase(rsp) = "U" Then
> c.Formula = UCase(c.Formula)
> ElseIf UCase(rsp) = "P" Then
> c.Formula = Application.WorksheetFunction.Proper(c.Formula)
> ElseIf UCase(rsp) = "L" Then
> c.Formula = LCase(c.Formula)
> End If
>Next
>End Sub
>
>Regards
>Peter
>"Scott Brooks" wrote:
>
>> I have a 7000+ line worksheet that is ballooned into a very large
>> address book. Over the years some of the addresses were entered in all
>> caps, others (~6000) in corect case. Is there a way that I can
>> automatically change to proper case, ala MS Word? I am using Excel
>> 2003, but can use Excel 2007.
>>
>> Thanks for the advice.
>>
>> -Scott
>>


 
Reply With Quote
 
=?Utf-8?B?QmlsbHkgTGlkZGVs?=
Guest
Posts: n/a
 
      2nd Mar 2007
Thanks for the feedback, your welcome

Peter

"Scott Brooks" wrote:

> Thanks for the macro, that worked a bit too well, now I have to change
> Cpa, Llc and some email addresses, but a find and replace has still
> saved me MANY hours this weekend. Thanks again.
>
> ~Scott
>
> On Fri, 2 Mar 2007 03:08:03 -0800, Billy Liddel
> <(E-Mail Removed)> wrote:
>
> >Scott
> >
> >You could use this macro
> >
> >Option Explicit
> >
> >Dim rsp, c, sep As String, sp, rgt As String, tmp As String
> >Dim i As Integer, L As Integer, count As Integer
> >Dim cnt As Integer, rng As Range
> >
> >Sub changeCase()
> >' Amended by Gord Gibbon MSVP
> >' so not to overwrite formulas in selection
> >
> >rsp = InputBox("Enter U, P or L to choose Upper, Proper or Lower case", _
> > "Choose Case to Alter Text", "p", 100, 100)
> >For Each c In Selection
> > If UCase(rsp) = "U" Then
> > c.Formula = UCase(c.Formula)
> > ElseIf UCase(rsp) = "P" Then
> > c.Formula = Application.WorksheetFunction.Proper(c.Formula)
> > ElseIf UCase(rsp) = "L" Then
> > c.Formula = LCase(c.Formula)
> > End If
> >Next
> >End Sub
> >
> >Regards
> >Peter
> >"Scott Brooks" wrote:
> >
> >> I have a 7000+ line worksheet that is ballooned into a very large
> >> address book. Over the years some of the addresses were entered in all
> >> caps, others (~6000) in corect case. Is there a way that I can
> >> automatically change to proper case, ala MS Word? I am using Excel
> >> 2003, but can use Excel 2007.
> >>
> >> Thanks for the advice.
> >>
> >> -Scott
> >>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing from upper case to lower case Louise Microsoft Excel Misc 12 27th May 2008 05:30 PM
Changing multiple cell text from lower case to upper case Patti Microsoft Excel Misc 2 4th Jan 2008 08:35 PM
Can't find short cut for changing case ... upper case .... lower case JERRY Microsoft Word New Users 7 23rd Aug 2007 05:29 PM
Changing existing lower case text to upper case Tnd57 Microsoft Word Document Management 4 28th May 2004 12:38 AM
Changing text to all upper case or lower case Sam Microsoft Windows 2000 2 5th Sep 2003 03:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 PM.