+ Reply to Thread
Results 1 to 4 of 4

Changing Textbox Font Color

  1. #1
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Changing Textbox Font Color

    Hi,

    I was wondering if there was some VBA that would change the color of text in a textbox based off of a cells value. For the attached excel... If the D2 is = to "QN" I would like the text in the box to be black and if it is anything else I want it to be white.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Changing Textbox Font Color

    Is that essentially the same as saying you only want to see some text if D2="QN"?

    And if so do you really need a permanently visible TextBox. Why not a pop message box or a userform with some text.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Changing Textbox Font Color

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-31-2020
    Location
    Florida, USA
    MS-Off Ver
    2016
    Posts
    18

    Re: Changing Textbox Font Color

    Well I want it work for more values than just "QN" plus if the value is selected it needs to be viewed for longer periods of time so I would be fine with a permanently visible text box.

+ 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] If value of textbox contains value change color of textbox font
    By JohnGreen2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2019, 01:26 PM
  2. [SOLVED] If value of textbox contains value change color of textbox font
    By JohnGreen2 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-27-2019, 09:44 AM
  3. [SOLVED] Changing font from a disable textbox
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2012, 03:13 PM
  4. Advanced Textbox in UserForm - Keep Color of Font Same as Cell
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2011, 07:05 PM
  5. Textbox Font color
    By ponram in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2009, 09:46 AM
  6. Changing the font color using VBA
    By magoobee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2005, 10:51 AM
  7. [SOLVED] Changing font color of textbox text.....
    By jan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-31-2005, 05:06 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