+ Reply to Thread
Results 1 to 5 of 5

VBA to Format Date and color it on text string

  1. #1
    Registered User
    Join Date
    05-03-2005
    Posts
    16

    VBA to Format Date and color it on text string

    Hi guys,

    I am new on this. What I am trying to accomplish is to have the following text with the date formatted as MMM D, YYYY and at the same time colored it in red.

    Like this: Great job with your homework. You have scored 80%. Your next assignment is on March 31, 2015.

    Assuming that A1 = 80% and A2 = 03/31/2016

    Here is the code I am using:
    Please Login or Register  to view this content.
    Thank you for your help!

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA to Format Date and color it on text string

    Maybe :

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: VBA to Format Date and color it on text string

    or possible
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-03-2005
    Posts
    16

    Re: VBA to Format Date and color it on text string

    This is awesome! Thank you both!

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA to Format Date and color it on text string

    You are welcome, glad to help.


    Regards

+ 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. Replies: 2
    Last Post: 04-14-2015, 04:20 PM
  2. Changing date format in a text string
    By rsmith10 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 09:46 AM
  3. copy only fonts(text color) from one string of text to another string of text
    By JMJ123 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-06-2013, 04:22 AM
  4. Change font color based on the ending text string (date) of a cell
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-31-2013, 04:04 PM
  5. Replies: 1
    Last Post: 06-06-2011, 10:08 AM
  6. Converting ddmmyy date format to text string
    By Fos605 in forum Excel General
    Replies: 1
    Last Post: 06-06-2008, 09:49 AM
  7. Converting Text String to Date Format
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2007, 11:09 AM

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