+ Reply to Thread
Results 1 to 6 of 6

Change Contents of Active Cell to Upper Case

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Change Contents of Active Cell to Upper Case

    Morning, Gurus. It will take you guys about 2 seconds to figure this one out.

    All I'm trying to do is change the contents of my active cell to upper case letters via VBA.

    I know I can use a formula, =UPPER("RANGE"), but I don't know enough to convert that to VBA. I want to use the last cell in the worksheet to enter the formula, because that cell is never in use, and then just copay and paste the values from the formula back to the active cell. Here is what I have come up with so far. Thanks in advance for any help you can offer.
    Please Login or Register  to view this content.
    Last edited by [email protected]; 02-13-2019 at 11:50 AM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Change Contents of Active Cell to Upper Case

    LCase --> LOWER, UCase --> UPPER
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Change Contents of Active Cell to Upper Case

    I'm not sure if that answers my question, KOKO. I'm guessing you are saying there is a better way to do it, like maybe in the active cell itself rather than using formula and copy/paste values. Could you please clarify how these would be used? Again, my goal is to hotkey my macro so it I want to change my active cell to upper all I have to do is hit Ctrl+U. I also tried the code below after seeing your response, but it doesn't work:

    Please Login or Register  to view this content.
    Thanks.
    Last edited by [email protected]; 02-13-2019 at 11:30 AM.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Change Contents of Active Cell to Upper Case

    Quote Originally Posted by [email protected] View Post
    change the contents of my active cell to upper case letters via VBA.
    Overwrite cell value with its UPPERcase content:
    Please Login or Register  to view this content.
    for active cell it can be
    Please Login or Register  to view this content.
    assign Ctrl+U to this :-)
    Last edited by KOKOSEK; 02-13-2019 at 11:36 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Re: Change Contents of Active Cell to Upper Case

    THAT'S what I'm talkin' 'bout! Perfect, KOKO. Thanks.

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Change Contents of Active Cell to Upper Case

    Quote Originally Posted by [email protected] View Post
    KOKOSEK
    If you don't mind.

    You welcome.
    IF you happy with solution, please use thread tools and marked thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] On active row select col"A" and change to upper case
    By gregfox in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2018, 10:28 AM
  2. Replies: 7
    Last Post: 10-13-2014, 12:23 PM
  3. Write a subroutine in a module to change case upon exit of a cell to upper case
    By Stephd22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2013, 06:39 PM
  4. Replies: 3
    Last Post: 10-30-2009, 04:00 PM
  5. [SOLVED] How to change mixed case to upper case in Excel for all cells
    By WordAlone Network in forum Excel General
    Replies: 6
    Last Post: 02-14-2006, 08:10 PM
  6. Replies: 2
    Last Post: 12-09-2005, 05:15 AM
  7. Replies: 3
    Last Post: 01-06-2005, 03:06 PM

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