Solved

How to convert entire Excel sheet in uppercase?

Posted on 2011-02-16
5
595 Views
Last Modified: 2012-05-11
How to convert entire Excel sheet in uppercase?
0
Comment
Question by:SAM2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 11

Expert Comment

by:Runrigger
ID: 34907613
add another worksheet.

in cell A1, type the following formula - =UPPER(Sheet1!A1)

Then drag the formula out to cover the target data range.

Copy and paste special the formula to values!

assumes;

1) That you only have text values (probably not)
2) The sheet that you want to convert to upper is called Sheet1
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34907626
that's the quick way (although it will convert numbers to text, which can easily be converted back to numbers using text-columns), the alternative is to have a macro do this for you.

Is that an option?
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34907644
try this;

=IF(ISNUMBER(Sheet1!A1),Sheet1!A1,UPPER(Sheet1!A1))
0
 
LVL 6

Accepted Solution

by:
FernandoFernandes earned 500 total points
ID: 34907718
if you want to use VBA:
1) press Alt+F11
2) Press Ctrl+R
3) Find your file in the Project Explorer
4) Right-click any part of your faile and select insert/module
5) paste the code below
6) hit F5 with the cursor within the code area
7) wait
8) done :)
Sub UpperCaseWholeWorkbook()
On Error Resume Next
Dim sht As Worksheet
Dim rng As Range

with Application
.EnableEvents=False
.Calculation=xlCalculationManual
End With

For Each sht In ThisWorkbook.Worksheets
    If Not sht.ProtectionMode Then
        For Each rng In sht.UsedRange
            With rng
                If .Formula <> "" Then
                    .Formula = VBA.UCase(.Formula)
                End If
            End With
        Next
    End If
Next sht

with Application
.EnableEvents=True
.Calculation=xlCalculationAutomatic
End With

End Sub

Open in new window

0
 
LVL 1

Author Closing Comment

by:SAM2009
ID: 34908745
Thank you it works fine!
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question