mixed case data

techsupportgrl

New Member
Joined
Aug 26, 2002
Messages
2
is there a way i can format a worksheet with mixed cased data into initial caps for all fields? data was imported from a SQL db with no case restraints on formatting and i have users trying to do mail merge letters and are having to reformat all cap fields into initial caps individually.

any suggestions appreciated. thanks.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
On 2002-08-27 07:47, techsupportgrl wrote:
is there a way i can format a worksheet with mixed cased data into initial caps for all fields? data was imported from a SQL db with no case restraints on formatting and i have users trying to do mail merge letters and are having to reformat all cap fields into initial caps individually.

any suggestions appreciated. thanks.

Try free ASAP Utilities from

http://asap-utilities.com
 
Upvote 0
thanks jim. i found your response to another post regarding the =PROPER function and it solved my issue.

thanks for double checking:)
 
Upvote 0
Here is a VBA solution:<pre>
Sub ApplyUpperCase()
Dim cell
Dim ConstantCells

On Error Resume Next
If Selection.Count = 1 Then
If Not Selection.HasFormula Then
Selection.Value = UCase(Selection.Value)
End If
Else
Set ConstantCells = Selection.SpecialCells(xlConstants, 23)
For Each cell In ConstantCells
cell.Value = UCase(cell.Value)
Next cell
End If
End Sub</pre>

_________________
JRN

Excel 2000; Windows 2000
This message was edited by Jim North on 2002-08-27 11:35
 
Upvote 0

Forum statistics

Threads
1,222,045
Messages
6,163,587
Members
451,846
Latest member
ajk99

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