+ Reply to Thread
Results 1 to 3 of 3

why doesn't code reset cell color back?

  1. #1
    Registered User
    Join Date
    03-10-2008
    Location
    Maine
    Posts
    3

    why doesn't code reset cell color back?

    Issue: vba code in worksheet won't revert a changed cells color back to 0(white) after removing the comment
    Observations: code does set the desired cell colors to Yellow after inserting a comment, however removing said comment,
    and re-activating the worksheet does NOT reset the color after deactivating/re-activating the worksheet.



    Please Login or Register  to view this content.

    Thanks,
    Rich

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: why doesn't code reset cell color back?

    To remove colour
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: why doesn't code reset cell color back?

    This code will not work. If there will be no comments on the sheet and rngComments will be Nothing, it will not have Interior property (it will not be Range object) and error will occur. You must monitor all cells with comments or you must clear fill from all cells and colour only comment cells.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. [SOLVED] Reset Filters back to ALL
    By marissa.jessick in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-27-2012, 02:23 PM
  2. [SOLVED] Excell 2010: How to set/reset the default color for cell borders
    By batman in forum Excel General
    Replies: 2
    Last Post: 08-11-2012, 04:23 PM
  3. Why doesn't the code reset?
    By imaraq in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2009, 03:58 AM
  4. How do I reset my opening cell back to A1?
    By sloowhand in forum Excel General
    Replies: 1
    Last Post: 02-27-2006, 09:00 PM
  5. back ground color doesn't work in cell.
    By Soother in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-06-2005, 10:05 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