+ Reply to Thread
Results 1 to 3 of 3

toggling background colour of a cell

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    cape town
    MS-Off Ver
    Excel 2007
    Posts
    27

    toggling background colour of a cell

    hi guys

    i have a sheet in which i wish to toggle the background colour of banded rows.
    i found part of the code but if someone could please assist. essentially what i want is if the user double clicks on the cell(in a specific range) the active cell colour changes as well as the font colour.

    now when the user double clicks on that same cell again i need it to revert back to its original colour.
    here is the code:
    HTML Code: 
    the module is:
    HTML Code: 

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: toggling background colour of a cell

    Hello roninn75,

    This will work...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-03-2010
    Location
    cape town
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: toggling background colour of a cell

    thank you for your response leith but i need it to change the background colour from whatever it is to one i specify (on first double click) then if i double click again it needs to revert.
    your code changes the background colour to white on first double click but does not revert it back on the second...

+ 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