+ Reply to Thread
Results 1 to 3 of 3

Change cell format to lowercase in VBA code

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    36

    Change cell format to lowercase in VBA code

    Hi,

    I use some VBA code to send an email with various cells values out..

    I have changed some of the formats of the cells before the email is sent and then back to "general" at the end of the code so they don't change in the cells, just in the email.

    E.g.
    Please Login or Register  to view this content.
    Then back to normal at the end of the code with:
    Please Login or Register  to view this content.
    I want to know if I can do the same with changing something to lowercase and then back to normal at the end of the code? I only wish for it to be lowercase in the email.

    I have googled a lot but I can't seem to find anything that fits what I want.

    Thanks for any help at all. This has been frustrating me for days.

  2. #2
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Change cell format to lowercase in VBA code

    How about using 2 variables one the original value and one the lowercase value.

    dim original, lowercase

    original = range("c8").value
    lowercase = lcase(original)

    range("c8") = lowercase.

    send the email

    then range("c8") = original.

  3. #3
    Registered User
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Change cell format to lowercase in VBA code

    That works great, thank you so much.

+ 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