+ Reply to Thread
Results 1 to 7 of 7

change text to uppercase

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Mesquite, Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    change text to uppercase

    I'm creating a schedule template and with much help from the members of excel forum, I almost have it finished. I finally have the macro fixed to input the day and date, but it's in proper case and I'm trying to convert it to uppercase. I've tried several ideas that I've found on the internet but nothing works. Here's the code that inputs the day and date. Can anyone tell me what I need to add to get upper case?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: change text to uppercase

    Use UCase


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: change text to uppercase

    Here is some code for you to examine.

    Please Login or Register  to view this content.
    Note that two lines are commented out. Pick the one you want and change it.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    Mesquite, Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: change text to uppercase

    alanskiman, I want to put it in the same macro so that when i create the schedules, I just have to run one macro. Do I wrap that around my code that dates the sheets?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: change text to uppercase

    Without seeing your entire code, I cannot tell you where to place my code. I'm sure its just a case of putting them in the proper order.

    Alan

  6. #6
    Registered User
    Join Date
    10-09-2012
    Location
    Mesquite, Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: change text to uppercase

    I just stepped through the macro and it changes the names in the schedule but not the day and date. Specifically, I just need to change cells a1 and g1 to upper case

  7. #7
    Registered User
    Join Date
    10-09-2012
    Location
    Mesquite, Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: change text to uppercase

    Heres the macro. All I need to do is make the day and date all uppercase and nothing works
    Attached Files Attached Files

+ 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