+ Reply to Thread
Results 1 to 12 of 12

Cell Color

  1. #1
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Talking Cell Color

    I need help with cell shading. I am trying to make a cell color of a cell in a Gradebook, under Tuesday, with the letter "H" in it
    show in a cell in a worksheet named "week1", under Tuesday, with the word "Homework" in it.

    In other words, when I change the the color of cell (D5) of the Gradebook it will also change in cell (F8) of the worksheet name "week1".

    I hope you can understand what I am asking. If you do, what code would I put in the worksheet to get the new color?
    Attached Files Attached Files
    Last edited by Mr_Quick; 04-15-2010 at 06:08 AM. Reason: removed fancy font formatting

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Cell Color Help

    There's no need for the Bold Font & use the attach button to attach files on the Forum, workbooks being far more useful than images
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Cell Color Help

    Mr Quick, welcome to the forum.

    Please go easy on the formatting, and use the forum facilities to upload files, rather than untrusted external sites.

    In general, if you need help with pictures, post pictures, but if you need help with Excel, ....

  4. #4
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Cell Color Help

    Quote Originally Posted by teylyn View Post
    Mr Quick, welcome to the forum.

    Please go easy on the formatting, and use the forum facilities to upload files, rather than untrusted external sites.
    ....
    Thanks for the advice and sorry for the links back to my site. I was having issues with the attachment pop-up window, I think it was a Firefox browser problem; It worked when I tried it a second time.

  5. #5
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Cell Color Help

    Quote Originally Posted by teylyn View Post
    Mr Quick, welcome to the forum.

    Please go easy on the formatting, and use the forum facilities to upload files, rather than untrusted external sites.
    ....
    Thanks for the advice and sorry for the links back to my site. I was having issues with the attachment pop-up window. I think it was a Firefox browser problem; It worked when I tried it a second time.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Cell Color Help

    Post the workbook. There's no telling from your picture which cell is which.

  7. #7
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Cell Color Help

    Quote Originally Posted by teylyn View Post
    Post the workbook. There's no telling from your picture which cell is which.
    Thanks for the advice again. I got rid of the pictures and added an example of what I am trying to do. I would love to figure this one out -been pulling my hair out for 2 days.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Cell Color Help

    So what are the rules? Just simply copy the color of cell D5 on sheet "Gradebook" to F8 on sheet "week1"?

    Somehow I have a feeling it will be more complex than that.

    This can only be achieved by VBA, as far as my experience goes, and you'd better spell out all the rules and circumstances before someone tries to tackle this.

    Your data sample does not have any data, but I'm fairly sure that data and values might play a part in it.

    For a macro-free solution, you could use adjacent cells in sheet "Gradebook", e.g. E5 and enter "green". Then E5 could be colored with conditional formatting, and week1!F8 could also be conditionally formatted based on that cell, if a few things like range names are set up first.

    But I think it might be better to step back and explain the concept in full, otherwise we'll end up tweaking a less than perfect workaround into a solution for the bigger picture.
    Last edited by teylyn; 04-14-2010 at 06:52 PM.

  9. #9
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Cell Color Help

    Quote Originally Posted by teylyn View Post
    Just simply copy the color of cell D5 on sheet "Gradebook" to F8 on sheet "week1"?
    Yes, this is what I want. The only complex thing is that I want the color of F8 to change whenever I change the color of D5.

    There is no code in these cells. The only formatting will be the cell color.

  10. #10
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Cell Color Help

    Ok, maybe if I explain it this way, you will understand. I want (F8) in "week1" to shade automatically when I manually shade (D5) in "gradebook."

  11. #11
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Cell Color

    OK,

    right-click on the sheet tab for the week1 sheet, click View Code to open the VB Editor and copy this code into the code window:

    Please Login or Register  to view this content.
    Close the VB Editor and make sure to save your file as a macro-enabled file with the .xlsm extension.

    cheers

  12. #12
    Registered User
    Join Date
    04-14-2010
    Location
    Ciaro, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Cell Color

    Quote Originally Posted by teylyn View Post
    OK,

    right-click on the sheet tab for the week1 sheet, click View Code to open the VB Editor and copy this code into the code window...
    Thank you, thank you, and thank you again! That was exactly what I was trying to figure out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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