+ Reply to Thread
Results 1 to 6 of 6

Event when font color changed

  1. #1
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Event when font color changed

    Dear all

    Could anyone help me change this vba worksheet_selection_change event to when font color in range("A1:A12") is changed.
    the code is here
    Please Login or Register  to view this content.
    Thanks
    GUURE

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Event when font color changed

    There is no Font Changed event... and the code posted simply changes the colour if it is Red, regardless...

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: Event when font color changed

    What cytop said .

    If you are trying to count, or sum, coloured cells, you could use AutoFilter to filter column A based on the background, or font, colour. And you can use SUBTOTAL to count or sum the values in the visible cells.

    Doesn't need VBA.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Event when font color changed

    Thank you cytop an TSM.

    I want to manually change the fonts to red.
    Then I need cell A13 to sum red color cells automatically.

    This code updates when the select another cell after font color changed

    If there no nearest way I will use my own

    Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: Event when font color changed

    Have a look at this site: http://www.cpearson.com/excel/colors.aspx

  6. #6
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Event when font color changed

    Thanks TMS

+ 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. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  2. [SOLVED] Changed the color of font when criteria met
    By kachuen2006 in forum Excel General
    Replies: 4
    Last Post: 10-23-2012, 04:56 AM
  3. 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
  4. 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
  5. [SOLVED] Changed default font, previous font still shows when editing
    By Font/Editing Problem in forum Excel General
    Replies: 0
    Last Post: 05-18-2006, 11:45 AM
  6. [SOLVED] Event Macro adjustment needed - need to change font color also
    By nick s in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2005, 01:55 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