+ Reply to Thread
Results 1 to 5 of 5

Change the text font

  1. #1
    Registered User
    Join Date
    09-03-2018
    Location
    London, England
    MS-Off Ver
    10
    Posts
    7

    Change the text font

    Hello,

    how to automatically change the text font (e.g. color red) to the left of the columns if it matches the characters on the right?

    When done manually it looks like this:

    color.jpg

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Change the text font

    Is the text on the left values typed into the cell, or is it formulas?

    If it is values, this requires VBA. Conditional Formatting features do not work on just parts of the cell value.

    If it is formulas, it cannot be done.

    Feel free to attach a sample file. It would have been easier to do straight away than to take your screen shot and attach that. See yellow banner at the top of the page.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-03-2018
    Location
    London, England
    MS-Off Ver
    10
    Posts
    7

    Re: Change the text font

    The left values is typed into the cells.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Change the text font

    See attached. This will work for any number of rows but if the format in your actual file is different then the code will have to change.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-03-2018
    Location
    London, England
    MS-Off Ver
    10
    Posts
    7

    Re: Change the text font

    Quote Originally Posted by 6StringJazzer View Post
    See attached. This will work for any number of rows but if the format in your actual file is different then the code will have to change.
    Hello,

    I will paste values to your file. It will be as template.
    I’ve been using this for a while now

    I have a request for such a modification:

    1. Add an additional Designators column (J) (as an example M and N columns). Then use different buttons (as an example "Color References T" and "Color References B") to change the references colors of the T and B values.
    if the value in the column "References" is in the column "Designator T" - the color is green
    if the value in the column "References" is in the column "Designator B" - the color is red


    2. (If it is possible) Add a separate button to expand the values (from - to) in the References column.
    For example:

    C1, C3, C5-C9, C14 --> C1, C3, C5, C6, C7, C8, C9, C14


    3. Calculate how many "References" values are green and how many are red (as an example C and D columns) (there may also be a separate button).

    I performed these steps manually. It would be great if it could be automated.
    Thank you very much for the work you have already done.
    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)

Similar Threads

  1. [SOLVED] Change font color if text is #na
    By 4lbert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-13-2020, 03:03 AM
  2. Change Font Properties of Selected Text
    By atwy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2014, 02:35 AM
  3. [SOLVED] Text Box Font Colour Change
    By Broobi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2014, 07:14 AM
  4. [SOLVED] Auto font change with text edit
    By npilcher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2014, 09:08 PM
  5. Change the Font of selected text in excel vba
    By niveditha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2012, 10:51 PM
  6. related text change font color
    By Saut1 in forum Excel General
    Replies: 5
    Last Post: 03-24-2009, 10:43 AM
  7. [SOLVED] Search for text, change font color
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2005, 11:05 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