Search TeachExcel.com
TeachExcel.com
TE
Teach Excel MS Office Tutorials Excel Consulting Services Excel Forum
Excel Video Tutorials Excel Tips Free Excel Macros Excel Help Resources Contact TeachExcel
Video Tutorials
  • Free Macros
  • Excel Help Directory
  • Excel 2007 Resources
  • Keyboard Shortcuts
  • Excel Forum
  • Contact/About

Macros
Excel Tutorials For Macros

Change Text to Lowercase


Bookmark and Share

This macro will change all text within the selected cells to lowercase. It works only on selected cells within Microsoft Excel and it will work on ranges that include rows, columns, and both at the same time.
Where to install the macro:  Module

Convert Text in Cells to Lowercase

Sub Lowercase()

'
'This will make the text of any selection of cells lowercase.
'
For Each x In Selection
x.Value = LCase(x.Value)
Next
End Sub

Bookmark and Share


How to Install the Macro
  1. Select and copy the text from within the grey box above.

  2. Open the Microsoft Excel file in which you would like the Macro to function.

  3. Press "Alt + F11" - This will open the Visual Basic Editor - Works for all Excel Versions.  Or For other ways to get there, Click Here.

      For Excel Versions Prior to Excel 2007
      Go to Tools > Macros > Visual Basic Editor

      For Excel 2007
      Go to Office Button > Excel Options > Popular > Click Show Developer tab in the Ribbon. Then go to the Developer tab on the ribbon menu and on the far left Click Visual Basic

  4. On the new window that opens up, go to the left side where the vertical pane is located. Locate your Excel file; it will be called VBAProject (YOUR FILE'S NAME HERE) and click this.

  5. If the Macro goes in a Module, Click Here, otherwise continue to Step 8.

    1. Go to the menu at the top of the window and click Insert > Module
    2. Another window should have opened within the Visual Basic Editor's window. Within this new window, paste the macro code. Make sure to paste the code underneath the last line of anything else that is in the window.
    3. Go to Step 8.

  6. If the Macro goes in the Workbook or ThisWorkbook, Click Here, otherwise continue to Step 8.

    1. Directly underneath your excel file called VBAProject(your file's name here), click the Microsoft Excel Objects folder icon to open that drop-down list.
    2. Then, at the bottom of the list that appears, double-click the ThisWorkbook text.
    3. A new window inside the Visual Basic Editor's window will appear. In this new window, paste the code for the macro. Make sure to paste this code underneath the last line of any other code which is already in the window.
    4. Go to Step 8.

  7. If the Macro goes in the Worksheet Code, Click Here, otherwise continue to Step 8.

    1. Directly underneath your excel file called VBAProject(your file's name here), click the Microsoft Excel Objects folder icon to open that drop-down list.
    2. Within the list that appears you will see every worksheet that is in that excel file. They will be listed as such: Sheet1(NAME OF SHEET HERE) and under that will be Sheet2(NAME OF SHEET HERE). Select the sheet in which you want the macro to run and double-click that sheet.
    3. A new window inside the Visual Basic Editor's window will appear. In this new window, paste the code for the macro. Make sure to paste this code underneath the last line of any other code which is already in the window.
    4. Repeat steps b and c for every sheet you want the macro to work in. Putting the macro in one sheet will not enable it for any other sheets in the workbook.
    5. Go to Step 8.

  8. Close the Microsoft Visual Basic Editor window and save the Excel file. When you close the Visual Basic Editor window, the regular Excel window will not close.

  9. You are now ready to run the macro.



Similar Helpful Excel Resources

Change From Uppercase To Lowercase - Excel

View Content
Hello,

if I have multiple words in a cell, all uppercase, like for ex:

I WANT TO FIGURE THIS OUT

is there an easy formula so I can just make the first letter of each word in CAPS

so it will turn into

I Want To Figure This Out

Thanks for your help in Advance!

Change First Cap To Lowercase, Leave Everything Else Alone - Excel

View Content
I use voice recognition software to dictate into Excel for a database and, ultimately, mail merge into a report. The VR software always caps the first letter. Some cells in my Excel database represent part of a sentence and the first word should not be capped.

I need a macro or code that would make the first letter of the first word in a cell to lower case and leave everything else in the cell alone. Then, I need to be able to apply it to most but not all of the 188 fields in my database.

I am a near total novice at this. I have made some macros to automate tasks but I'm lost with this. Any help appreciated.

In Excel , Is There A Way I Can Change Uppercase To Lowercase? - Excel

View Content
Please e-mail me back ASAP, if there's a way to do this in Excel... I know
WORD has it, but I can't seem to find it EXCEL


Convert Lowercase Text To Uppercase Text In Excel - Excel

View Content
If I have few lower case values in my column B how can I convert them to uppercase? I see that every one suggest to use =upper(B) but where and how should I use this function?

Thanks in advance.

Converting Text To Lowercase? - Excel

View Content
Hi! I have an excel document with over a thousand rows that need to be converted from all uppercase text to title case text. Is there any way to do this? I see that there is a "proper" function, but I can't figure out how to use it. Any advice would be helpful!!!

Thanks

Lowercase Text Changed By Ecel To Uppercase After Import - Excel

View Content
I opened a tab-separated list text file in Excel. One column had lowercase
text, which Excel converted to uppercase. Is there a way to control this.
Also how would I correct this in Excel

Thanks
John


Lowercase - Excel

View Content
I want to be able to select row j and then change all the text from

JAMES BRADLEY
JAMES Bradley

to

James Bradley

ie all letters lower case apart from the first letter of each word

Searching For Lowercase - Excel

View Content
Okay, this sounds simple but I am stumped. I have a column of 48,000 records. I need to know which cells contain any lowercase letters. I need to just identify them, not make them uppercase. At least not for this project. Any help is appreciative. Thanks.

Multiple Lowercase B's - Excel

View Content
As i am working with my spreadsheet multiple lower case b's are appearing as
i highlight a cell or box a group of cells.

Working with Win XP Pro and Excel 2003


Uppercase To Lowercase - Excel

View Content
Please tell me how to change all uppercase to first letter only uppercase,
JOHN DOE to John Doe. Can I do a whole worksheet in one try?


Random Tutorials
Net Present Value / Discounted Cash Flow Calculations
(Intermediate)
Bond Pricing Calculations for Simple Bonds
         - Future Value, Present Value, Interest Rate, etc.

(Intermediate)
Introduction to Making Formulas in Excel
(Easy)
AND(), OR(), and IF() Statements/Formulas
(Intermediate)
Consolidate & Combine Data from Separate Worksheets or Workbooks(Excel Files)
(Intermediate)
Assign Keyboard Shortcuts to Macros
(Easy)
Submit Inquiry Here
  • Prices From $10
Name:*
E-mail:*
Request:*
The macro(s) on this page will be sent with the request.
Contact | Privacy Policy | Disclaimer
Copyright© 2012 TeachExcel.com