proper case a a whole range

Trevor3007

Well-known Member
Joined
Jan 26, 2017
Messages
667
Office Version
  1. 365
Platform
  1. Windows
hi.

data in the range i3:i8000

is there away to force the data alredy in the above range to lowercase ?(i have put some code in so future any data entered will do this)... is there a way to do this without having to change each line manually?

MTIA
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Code:
Sub MakeItSmall()
Dim cell As Range
For Each cell In [I3:I8000]
    cell.Value = LCase(cell.Value)
Next cell
End Sub
 
Last edited:
Upvote 0
Another option
Code:
Sub Trevor3007()
   With Range("I3", Range("I" & Rows.Count).End(xlUp))
      .Value = Evaluate(Replace("if(@="""","""",proper(@))", "@", .Address))
   End With
End Sub
 
Upvote 0
Another option
Code:
Sub Trevor3007()
   With Range("I3", Range("I" & Rows.Count).End(xlUp))
      .Value = Evaluate(Replace("if(@="""","""",[B][COLOR="#FF0000"]LOWER[/COLOR][/B](@))", "@", .Address))
   End With
End Sub
I know the thread title say "Proper Case", but the OP's description says he wants "Lower Case".
 
Last edited:
Upvote 0
Another option
Code:
Sub Trevor3007()
   With Range("I3", Range("I" & Rows.Count).End(xlUp))
      .Value = Evaluate(Replace("if(@="""","""",proper(@))", "@", .Address))
   End With
End Sub

Hi Fluff,

thanks for the VB...works a treat many thanks.
 
Upvote 0
Code:
Sub MakeItSmall()
Dim cell As Range
For Each cell In [I3:I8000]
    cell.Value = LCase(cell.Value)
Next cell
End Sub

hello KOKOSEK ,

thank you for your reply. I am unsure why you sent VB for 'lower' as i requested VB for Proper Case, but many thanks anyhoo...i am sure i willl need & use soon.
 
Upvote 0
Code:
Sub MakeItSmall()
Dim cell As Range
For Each cell In [I3:I8000]
    cell.Value = LCase(cell.Value)
Next cell
End Sub

hello,

DOH... now I know why the 'lower' VB. my OP stated this...my bad
 
Upvote 0
An another means:

Load your data into Power Query. Select All Columns. Select Transform. Select Format. Select Lowercase. Close and Load.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,272
Members
448,558
Latest member
aivin

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