+ Reply to Thread
Results 1 to 4 of 4

Target.Font.Color Error in Workbook_SheetChange

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    25

    Exclamation Target.Font.Color Error in Workbook_SheetChange

    Hi Everybody,
    I have a code to change the font color in Workbook_SheetChange event when an cell value has been changed.Below is the code in the Workbook_SheetChange event, it is throwing a Application-Defined error or object defined error for this line.Please let me know if I miss anything here .

    Please Login or Register  to view this content.

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Target.Font.Color Error in Workbook_SheetChange

    Is the sheet protected?

    Unrelated to your problem, I expect you want to set the ColorIndex property, not Color (3 is very close to black).
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Target.Font.Color Error in Workbook_SheetChange

    Sheet is Protected.. But I have made the Selected row as unprotected using the code below and also I'm able to edit that particular row and when i try to set the color it is throwing error

    Please Login or Register  to view this content.

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Target.Font.Color Error in Workbook_SheetChange

    You can't change the Locked property of a range when the sheet is protected. Unprotect the sheet first.

+ 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] Workbook_SheetChange and If Not Intersect error
    By greglittle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-25-2012, 11:35 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. Error with two Workbook_SheetChange events
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-24-2012, 08:46 AM
  5. Font.Color - syntax error ?
    By Linda Edlund in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2006, 04:00 AM

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