+ Reply to Thread
Results 1 to 5 of 5

Changing uppercase to lowercase

  1. #1
    Paul K.
    Guest

    Changing uppercase to lowercase

    I looked on this forum yesterday to find a solution to change upper to
    lowercase in a spreadsheet. I found this code in a thread which needs to be
    changed in order to produce lowercase results at the moment it produces
    UPPERCASE.

    Option Explicit

    Sub ConvertCase()
    Dim Rng As Range
    For Each Rng In Selection.Cells
    If Rng.HasFormula = False Then
    'Use this line for UpperCase text; change UCase to LCase for
    LowerCase text.
    Rng.Value = UCase(Rng.Value)
    End If
    Next Rng
    End Sub

    Could someone please explain what part of the code needs changing to produce
    lowercase results. Thank you in advance

    Paul

  2. #2
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    Instead of fiddling with VBA, why don't you just do:

    =LOWER(A1)

    This'll change all the text to lowercase. You'll need to do it in a seperate column, but then just copy and paste it over.

    HTH,

    SamuelT

  3. #3
    SIR Knight
    Guest

    Re: Changing uppercase to lowercase


    Paul,

    Change the "UCase(Rng.Value)" to "LCase(Rng.Value)"

    The line in the code above this tells you what to change

    Steve


  4. #4
    Registered User
    Join Date
    08-17-2006
    Posts
    22
    There is an UPPER and LOWER function (=LOWER(A2))

    If you use this and copy/paste special (values) I'm sure you could resolve.

  5. #5
    Paul K.
    Guest

    Re: Changing uppercase to lowercase

    Thank you.

    "SIR Knight" wrote:

    >
    > Paul,
    >
    > Change the "UCase(Rng.Value)" to "LCase(Rng.Value)"
    >
    > The line in the code above this tells you what to change
    >
    > Steve
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1