+ Reply to Thread
Results 1 to 9 of 9

Match Cell Colour on Userform

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Match Cell Colour on Userform

    Hi guys,

    On my workbook in Sheet3 I have an IF formula that once various data is processed so that Cell F30 shows Yes or No and turns Green or Red via Conditional Formatting.

    On UserForm1 I have a Textbox that displays Yes or No, based on the value shown in F30. Is there a way to copy the colour from Cell F30 into the TextBox, even though it is coloured via CF?

    Many thanks,

    Chris

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,256

    Re: Match Cell Colour on Userform

    Not easily I think...
    Please Login or Register  to view this content.
    https://excelfox.com/forum/showthrea...atting-or-not)
    Last edited by sintek; 06-18-2020 at 12:22 PM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Match Cell Colour on Userform

    Not sure if you have DisplayFormat, but if so, how about
    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,256

    Re: Match Cell Colour on Userform

    @ fluff... that didnt work for me strange enough...

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Match Cell Colour on Userform

    Not sure when DisplayFormat appeared, I suspect it was either 2007 or 2010, but pretty sure I used it with 2013.
    Did you get an error message?

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,256

    Re: Match Cell Colour on Userform

    @ Fluff13

    Worked on other PC 2013,
    2007 no change, 2010 turned black ... should have been red...
    anyway thanks ...

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: Match Cell Colour on Userform

    It was introduced with 2010 (so should have caused an error in 2007).
    Remember what the dormouse said
    Feed your head

  8. #8
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Match Cell Colour on Userform

    Perfect, thanks Sintek.

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,256

    Re: Match Cell Colour on Userform

    Perfect, thanks Sintek.
    No...Fluff13 posted perfect solution...If post 2007 version...

+ 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. VBA to match cell colour
    By sam_morris in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-10-2019, 09:29 AM
  2. [SOLVED] Match UserForm textbox to Cell Colour
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-25-2019, 11:50 AM
  3. [SOLVED] Change background colour to yellow if cell doesn't match the previous cell
    By drzeto in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 05:33 PM
  4. Replies: 2
    Last Post: 01-05-2016, 06:36 PM
  5. [SOLVED] Give a cell the colour Red when a value is chosen in a UserForm
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2014, 08:16 AM
  6. Userform button to match numbers in database and colour
    By troysie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2010, 02:31 AM
  7. Match each cell in a columns background/text colour to that of another cell?
    By Wabby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2010, 05:41 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