+ Reply to Thread
Results 1 to 16 of 16

How can I change font color when I edit existing data?

  1. #1
    Registered User
    Join Date
    10-25-2009
    Location
    Nepal
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    48

    How can I change font color when I edit existing data?

    Hello All,

    I have a datasheet file in Excel. Now I have to edit it and my boss ask me to change the color red which data or cell is edited. I apply track change but it cannot change the color of text. Please suggest. Your suggestions is highly appreciated. Thanks

    The sample file is also attached.
    Attached Files Attached Files
    Last edited by indra; 07-28-2010 at 12:39 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: How can I change font color when I edit existing data?

    right click sheet tab and click viewcode and in the resulting window copy this event code

    Please Login or Register  to view this content.
    when you change any cell in the original data and hit enter you will get the red color. Try

  3. #3
    Registered User
    Join Date
    10-25-2009
    Location
    Nepal
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    48

    Re: How can I change font color when I edit existing data?

    Yes, That's it. It works very perfect to me. You are greate! Thanks for your kind suggestion.
    Last edited by indra; 07-28-2010 at 12:34 AM.

  4. #4
    Registered User
    Join Date
    07-28-2014
    Location
    Kota Kinabalu, Borneo
    MS-Off Ver
    2011 Mac
    Posts
    16

    Re: How can I change font color when I edit existing data?

    I have another Private Sub running above this which colours text red. I am hoping to find a way to allow a user to insert a row whereby instructions pop up in red text. When they key in data as per the instructions, I'd like the text to change back to black. Any thoughts?

  5. #5
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: How can I change font color when I edit existing data?

    Is this on the same page?

  6. #6
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    Payslip and vouchers

    What i want to do is to create a payslip generator where I can input the employee's name, designation, rate, number of absences, late/s, and calculate their net pay and generate payslip, all by just using vba codes.

  7. #7
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: How can I change font color when I edit existing data?

    Have you thought about using a Userform to enter the data?

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How can I change font color when I edit existing data?

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Remember what the dormouse said
    Feed your head

  9. #9
    Registered User
    Join Date
    02-19-2015
    Location
    Vadodara
    MS-Off Ver
    2010
    Posts
    1

    Re: How can I change font color when I edit existing data?

    Private Sub Worksheet_Change(ByVal Target As Range)
    Target.Font.ColorIndex = 3
    End Sub

    above is good but how we can change the Back ground color of text box?

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How can I change font color when I edit existing data?

    Dave, welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  11. #11
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: How can I change font color when I edit existing data?

    Start your own thread and try to attach sample worksheet.
    Because that will help to new comers in vba

  12. #12
    Registered User
    Join Date
    05-12-2016
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    4

    Re: How can I change font color when I edit existing data?

    I'm excited to try this because I really need it to work for something... but when I right-click the sheet tab, and click viewcode the window that pops up doesn't seem to have a place I can copy the code. I'm pretty unsophisticated when it comes to excel, but know enough to get myself in trouble I'm using Office 2013. Not sure if that makes a difference. Any help would be appreciated. (Hopefully) attached is the screenshot of the "viewcode" screen I get.Excel Viewcode.JPG

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How can I change font color when I edit existing data?

    Click Insert Module
    (you should really start your own thread, but we will let this 1 slide)

  14. #14
    Registered User
    Join Date
    05-13-2016
    Location
    india
    MS-Off Ver
    2013
    Posts
    1

    Re: How can I change font color when I edit existing data?

    Venkat,

    It's really cool but undo does not work after a data has been changed. Can you slightly modify the code.

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How can I change font color when I edit existing data?

    parijat_2 welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

    (also, you generally cannot undo changes made by VBA code)

  16. #16
    Registered User
    Join Date
    09-27-2016
    Location
    Mobile, AL USA
    MS-Off Ver
    MSO 2007
    Posts
    1

    Re: How can I change font color when I edit existing data?

    This is just what I needed also. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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