Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default how do i change all text case in a given worksheet at one time

I am attempting to change all the text in a 2,100 line item worksheet at the
same time with the results displaying in the orginal cell that previously had
the data in it but was all upper case. I have tried the proper function and
put a range in instead of the specifc text. The results dislayed in the cell
the proper funtion was written in the last cell only from range I specificed.
Is there a way to do the whole SS at a time
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 709
Default how do i change all text case in a given worksheet at one time

Debi, you can with a macro, if you need help using this post back

Sub Proper_Case()
'select the range you want to change
'and run this macro
Application.ScreenUpdating = False
Dim Rng As Range
For Each Rng In Selection.Cells
If Rng.HasFormula = False Then
Rng.Value = Application.WorksheetFunction.Proper(Rng.Value)
End If
Next Rng
Application.ScreenUpdating = True
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Debi" wrote in message
...
I am attempting to change all the text in a 2,100 line item worksheet at
the
same time with the results displaying in the orginal cell that previously
had
the data in it but was all upper case. I have tried the proper function
and
put a range in instead of the specifc text. The results dislayed in the
cell
the proper funtion was written in the last cell only from range I
specificed.
Is there a way to do the whole SS at a time



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default how do i change all text case in a given worksheet at one time

Debi

The Proper Function is a cell by cell function like =PROPER(A1) and will not
work on a range.

To change a range you need a macro.

Sub Upper_Case()
'David McRitchie, programming, 2003-03-07
Dim rng1 As Range, rng2 As Range, bigrange As Range
Dim cell As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
On Error Resume Next
Set rng1 = Intersect(Selection, _
Selection.SpecialCells(xlCellTypeConstants))
Set rng2 = Intersect(Selection, _
Selection.SpecialCells(xlCellTypeFormulas))
On Error GoTo 0
If rng1 Is Nothing Then
Set bigrange = rng2
ElseIf rng2 Is Nothing Then
Set bigrange = rng1
Else
Set bigrange = Union(rng1, rng2)
End If
If bigrange Is Nothing Then
MsgBox "All cells in range are EMPTY"
GoTo done
End If
For Each cell In bigrange
cell.Formula = UCase(cell.Formula)
Next cell
done:
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP




On Fri, 1 Dec 2006 11:06:00 -0800, Debi wrote:

I am attempting to change all the text in a 2,100 line item worksheet at the
same time with the results displaying in the orginal cell that previously had
the data in it but was all upper case. I have tried the proper function and
put a range in instead of the specifc text. The results dislayed in the cell
the proper funtion was written in the last cell only from range I specificed.
Is there a way to do the whole SS at a time


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
Trying to select a specific range based on the time value of user form input Jitranijam New Users to Excel 8 November 15th 06 12:52 AM
How to convert Value to words?Eg.Rs.1000/- to Repees One thousand Shailendra Neema Excel Discussion (Misc queries) 1 September 14th 06 11:28 AM
How do I change the case of text in more than one entry at a time Molly Excel Discussion (Misc queries) 2 June 7th 06 01:08 AM
Displays the number in text. (One thousand two hundred thirty four Ashish Patel Excel Worksheet Functions 1 March 20th 06 09:27 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM


All times are GMT +1. The time now is 02:24 PM.

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"