+ Reply to Thread
Results 1 to 7 of 7

Change font color for 30 seconds

  1. #1
    Registered User
    Join Date
    07-14-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Change font color for 30 seconds

    Hello all,

    I'm working on trying to make a value stand out after it's been input on a shared document.
    Sheet1 references values on Sheet2. When a value is entered on Sheet2, I want the reference to that cell on Sheet1 to change the font color to red for 30 seconds based on the time it was entered.

    I've been trying to figure this out for a while so any help is much appreciated.

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Change font color for 30 seconds

    Sheet1 references values on Sheet2. When a value is entered on Sheet2, I want the reference to that cell on Sheet1 to change the font color to red for 30 seconds based on the time it was entered.
    ummmm....why? You might be able to, but honestly I've never seen this question asked from Excel users in 20 years.

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Change font color for 30 seconds

    This works (for a change in C2 OR c3 as an example) but it sits in the loop for the duration which stops you doing other actions. I've set it to 5 seconds for testing purposes. I'm not sure if there is a way to allow background data entry to continue to occur while the Macro is running though. Smarter individuals than I may be able to assist

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Change font color for 30 seconds

    Croozas code obviously works and I would have given you the same solution because I don't think visual basic can I use a timer any other way than doing a loop like what he did. But I asked the question I asked simply because coloring a cell for 30 seconds I'm not really following why that would even be needed. But I suppose you have your reasons

  5. #5
    Registered User
    Join Date
    07-14-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Change font color for 30 seconds

    I'm trying to make the value more noticeable. I set up an audible notification but it's not enough for the people using it. I tried a message box but so far it only pops up for the person who enters the value. I even tried having an email triggered when the value is entered but it still requires the user to hit the send button. I can't rely on that, I need it to be automatic.

    Having it temporarily turn red will make the value stand out at a glance for everyone using it.

  6. #6
    Registered User
    Join Date
    07-14-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Change font color for 30 seconds

    Thanks Crooza. I'll give this a go when I get into work tomorrow.

  7. #7
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Change font color for 30 seconds

    I seriously doubt that one can enter data into Excel through the interface when code is running simply because I think the entire environment in her face and all including the coding environment is similar to one huge threading process in an operating system. and there for two things can't happen at the same time that are using different features of a of the given program. I might be wrong but that's sort of what I know about this.

    regarding the last thing that was posted I don't think that you can have this the way you want it I just don't believe personally that Excel can do this type of thing. but there are many other ways I think that you can make it stand out if that's what you want. But it kind of sounds like your users are kind of needing their hand held? If they are have you considered other options outside of the programming world I mean there's a plethora of ideas that you could come up with I'm sure to get a user to do what you want.

+ 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. change cell color only if that cells font color is black and it's value is < 2000
    By randall78 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-05-2019, 05:23 PM
  2. Mouse rolls over to cell will change the tab color, font color and tp bold type
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2013, 10:36 AM
  3. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  4. Change font color based on font color of another cell
    By Ibyers in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 09:36 AM
  5. change font color and font style in shape
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2011, 10:05 AM
  6. Replies: 3
    Last Post: 11-02-2005, 07:55 PM

Tags for this Thread

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