+ Reply to Thread
Results 1 to 11 of 11

Multiple fonts in a single cell

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Multiple fonts in a single cell

    Hi guys, My name is Rachel. I was recently working on a workbook in another thread titled: Indexing formula needed for two pages at:

    http://www.excelforum.com/excel-form...two-pages.html

    I have a workbook attached below that has two sheets "Options" and "Cases". On the "Cases" sheet i have a column titled "Quality level" - column D. When i place the letters E,P,R,M, in any cell in column D they will place the corresponding item in Row 3 of the "options" sheet depending on the option choice. For example if i place the letter E in Quality Level cell D3 it will display in Options cell B3:D3.

    If i place any combination of letters in any cell in Quality Column D they will reflect in the corresponding cells in Row 3 of the Options Sheet. I hope that's not too confusing.

    Now what I'm looking to do and i don't even know if it's possible, is that I want the letters

    E = Purple Font
    P = Blue Font
    R = Green Font
    M = Orange Font

    So that any time i place the letter E in any cell in column D it will always display as purple. The same for P,R, and M. Is that possible?

    Thanks in advance to anyone who takes the time to help!!

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Multiple fonts in a single cell

    Hi, put this in the code module for Sheet2(Cases), and remove the conditional formatting from the Cases sheet. Adjust the RGB values as desired.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Multiple fonts in a single cell

    Another approach:

    Please Login or Register  to view this content.
    Last edited by walruseggman; 03-23-2016 at 04:34 PM.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  4. #4
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Multiple fonts in a single cell

    Quote Originally Posted by Poizhan View Post
    Hi, put this in the code module for Sheet2(Cases), and remove the conditional formatting from the Cases sheet. Adjust the RGB values as desired.

    Please Login or Register  to view this content.
    This works!! Thank you. One more question. I'm going to have multiple different pages similar to "CASES". Do i simply copy the code you gave me into each sheet or are there additional changes i need to make?

  5. #5
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373
    Quote Originally Posted by RachelMads02 View Post
    This works!! Thank you. One more question. I'm going to have multiple different pages similar to "CASES". Do i simply copy the code you gave me into each sheet or are there additional changes i need to make?
    Yep! That will work, copy the code into each worksheet module. Make sure you change the worksheet reference (set ws = "sheet_name") also if the column changes, adjust the .cells reference.

  6. #6
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Multiple fonts in a single cell

    I assume this [nLR = ActiveSheet.Cells(Rows.Count, "D").End(xlUp).Row] is where i change the column letter if it changes in the other sheets?

  7. #7
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373
    Quote Originally Posted by RachelMads02 View Post
    I assume this [nLR = ActiveSheet.Cells(Rows.Count, "D").End(xlUp).Row] is where i change the column letter if it changes in the other sheets?
    Right and ws.cells (x, 4) where 4 corresponds to the column number (A = 1, B = 2 etc.)

  8. #8
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Multiple fonts in a single cell

    Okay I'll try it out. Thank you!

  9. #9
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Multiple fonts in a single cell

    is there anyway to speed up the process of the letters EPRM changing colors once imputed?
    Last edited by RachelMads02; 03-26-2016 at 01:57 PM.

  10. #10
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Multiple fonts in a single cell

    I believe the approach I posted would be faster for changing colors on newly inputted characters just because that's all it's looking at

  11. #11
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Multiple fonts in a single cell

    okay thank you!!

+ 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] vLookup multiple values separated by ";" in single cell / return result in single cell
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2015, 12:02 PM
  2. Replies: 1
    Last Post: 09-23-2014, 06:42 PM
  3. Multiple Search Criteria produces (list) Multiple results in a single cell
    By snake007uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2014, 12:13 PM
  4. Replies: 3
    Last Post: 02-21-2014, 05:33 PM
  5. Replies: 5
    Last Post: 05-25-2013, 07:12 AM
  6. [SOLVED] How can I lengthen the drop down Fonts list to show more fonts at
    By Moser D in forum Excel General
    Replies: 1
    Last Post: 02-05-2006, 11:30 AM
  7. Multiple fonts in one cell
    By Hammer_757 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2005, 09:33 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