+ Reply to Thread
Results 1 to 9 of 9

Copy colored cell to other cells within the same sheet

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    10

    Copy colored cell to other cells within the same sheet

    I have a colored cell (B13) with some text only and another different colored cell (B14) with some text only. I want other cells (D5, E5, & F5) within the same sheet to automatically have the same color from cell B13 but not copy text, just copy the color. I want this repeating with other cells (D6, E6, & F6) but with the color in cell B14. How do I do this? Thanks in adavance!!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Copy colored cell to other cells within the same sheet

    Hi, roseannej78,

    the change of a background colour doesn´t raise any event in Excel that could be used to paste the colour only. Do you have formulas in the cells to monitor or plain values? If you enter the valiues manually you could use this code (behind the sheet you want to monitor, right click on woirksheet-tab, choose View Code and paste into Code Window):

    Please Login or Register  to view this content.
    Please mind that this code will not pick up the colour chosen by use of Conditional Formatting.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Copy colored cell to other cells within the same sheet

    Quote Originally Posted by HaHoBe View Post
    Hi, roseannej78,

    the change of a background colour doesn´t raise any event in Excel that could be used to paste the colour only. Do you have formulas in the cells to monitor or plain values? If you enter the valiues manually you could use this code (behind the sheet you want to monitor, right click on woirksheet-tab, choose View Code and paste into Code Window):

    Please Login or Register  to view this content.
    Please mind that this code will not pick up the colour chosen by use of Conditional Formatting.

    Ciao,
    Holger

    Hello Holger,

    Thank you for your quick response! The codes work great! This is what I wanted, however (this is all my fault) I mentioned the wrong cells that I wanted to color. I put cells D5, E5, & F5. I meant to put every other cells D5, F5, & H5. I know there is probably just a minor change to your codes, but I don't know what to change/add. Thanks for your time & patience!

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Copy colored cell to other cells within the same sheet

    Hi, roseannej78,

    like you mentioned: not a big deal. You could help yourself recording a macro to get the information you need and add it accordingly to the code or copy this bit of code
    Please Login or Register  to view this content.
    Please do not quote full posts but only the necessary parts of these if needed.

    Ciao,
    Holger

  5. #5
    Registered User
    Join Date
    02-19-2014
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Copy colored cell to other cells within the same sheet

    This is perfect!! Thanks again for your help!!!!

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Copy colored cell to other cells within the same sheet

    Hi, roseannej78,

    thanks for the feedback - here´s another way to solve:
    Please Login or Register  to view this content.
    Ciao,
    Holger

  7. #7
    Registered User
    Join Date
    02-19-2014
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Copy colored cell to other cells within the same sheet

    Hi Holger

    WorkSchedule.xlsm

    I hope you can open the attachment.

    When I was using your code, I entered it in a new sheet and it worked perfectly. I created a work shedule and inputed your codes and for some reason, it's not working. Can you tell me what I am doing wrong? You will probably be able to tell what I'm doing in the sheet, but if not ask me anything about it, and I'll try to answer your questions. Thanks!!

    Rosie

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Copy colored cell to other cells within the same sheet

    Hi, Rosie,

    the row numbers should be those of the range you check:
    Please Login or Register  to view this content.
    Is it really Q55 and not Q3 you want to colour?

    Ciao,
    Holger

  9. #9
    Registered User
    Join Date
    02-19-2014
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Copy colored cell to other cells within the same sheet

    Hi Holger,

    Oops! Yes, I did mean Q3 and not Q55. I changed the case numbers and it worked beautifully!!!! Thanks a whole bunch!!!!!

    Have a great day!!!

    Rosie

+ 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. Counting colored cells in a sheet by column
    By Soldiermedic79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2013, 10:28 PM
  2. Replies: 1
    Last Post: 11-09-2013, 02:43 AM
  3. [SOLVED] Loop through column check for colored cell and copy that cell to cells below it.
    By RENCE19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2013, 04:51 AM
  4. Copy and save colored cells
    By brazuk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2012, 08:30 AM
  5. Have blocks of blue colored cells ... want them surrounded by lavender-colored cells
    By rocket1406 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-01-2007, 03:59 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