+ Reply to Thread
Results 1 to 12 of 12

Copy colored cell automatically into other cell

  1. #1
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019, LTSC Pro Plus 2021, Office365
    Posts
    155

    Copy colored cell automatically into other cell

    Dear forum users,

    I want to create an excel sheet containing the pagination of a newspaper. This newspaper consists of multiple (8) editions that get change pages on the previous printed edition.
    The printing order is as in the attached example.

    HAA is printed first and then there are a number of change pages in IJC. These are given a color and those cells should be automatically colored in the second schedule.

    I was able to make this with vba but should be able to do much simpler in my opinion.
    This vba is not complete, I only made the HAA.

    Grtz,
    FvdF
    Attached Files Attached Files
    With Regards,
    FvdF.

  2. #2
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Copy colored cell automatically into other cell

    Hi,

    like this, see attachment.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by cysu11; 06-27-2025 at 11:28 AM.
    Best regards, Alexandra

    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved"

  3. #3
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019, LTSC Pro Plus 2021, Office365
    Posts
    155

    Re: Copy colored cell automatically into other cell

    Hello cysu11,

    Your code seems to work well, super thanks for this.

    Do have another question though, can the change pages that are next to each other also be automatically summed in the cell at the bottom of the column (see image).



    Grtz,
    FvdF
    Attached Images Attached Images

  4. #4
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Copy colored cell automatically into other cell

    Hi,

    please load the excel file with the expected results, so i can fit the code accordingly!

    Update: now i see what you mean!

    BR, Alexandra

  5. #5
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019, LTSC Pro Plus 2021, Office365
    Posts
    155

    Re: Copy colored cell automatically into other cell

    Here my latest file.

    With Regards,
    FvdF
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Copy colored cell automatically into other cell

    Hi,

    like this, see attachment. I see your default color is blue?

    Please Login or Register  to view this content.
    BR, Alexandra
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019, LTSC Pro Plus 2021, Office365
    Posts
    155

    Re: Copy colored cell automatically into other cell

    Best,

    I am in the process of entering this sheet and so far it conforms to what I requested.

    Therefore, super thanks for this code and modifications.

    With Regards,
    Frans.

  8. #8
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Copy colored cell automatically into other cell

    Hi,

    you´re welcome, i´m glad that i could help you!

    BR, Alexandra

    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved"

  9. #9
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019, LTSC Pro Plus 2021, Office365
    Posts
    155

    Re: Copy colored cell automatically into other cell

    Hi,

    Something went wrong when counting the change plates. I think it has to do with the color, which has changed again.

    Is it possible to count without taking color into consideration?

    Second, constantly refreshing this sheet is quite irritating. Is it possible to do this without refreshing the sheet?

    With Regards
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Copy colored cell automatically into other cell

    Hi,

    1. how should be possible to count without taking color into consideration, even when this is the only thing you change? So please let me know, what is you default color, let me know one cell which have the default color?
    2. Would you prefer a button to start the code, when you are finish with you color change in the left table? Now the code start at every selection.change in left table...

    BR, Alexandra

  11. #11
    Forum Contributor
    Join Date
    03-22-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016-2019, LTSC Pro Plus 2021, Office365
    Posts
    155

    Re: Copy colored cell automatically into other cell

    Okay I understand that now.

    Surely I can adjust this color myself just can't figure out (yet) where this number comes from?
    Interior.Color = 16750950

    The default color then becomes no color, or is this also difficult? Then light yellow please (RGB 255/255/200)

  12. #12
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Copy colored cell automatically into other cell

    Hi,

    Interior.Color = 16750950, it means the numeric layout/display for RGB(102, 153, 255) it means blue, this color you haved in the last uplaoded file in post #5.

    Now you want the default color becomes no color, the numeric layout for this is 16777215.

    So the code will count now all the other colors <> 16777215. Also the refresh is now not more visible, but now you will see only the affected cells changing.

    Please Login or Register  to view this content.
    BR, Alexandra
    Attached Files Attached Files
    Last edited by cysu11; 07-09-2025 at 10:49 AM.

+ 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. Copy Value of colored cell into another worksheet using VBA
    By dpmgalea in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-14-2022, 01:02 PM
  2. Copy Value of colored cell into another worksheet using VBA
    By dpmgalea in forum Hello..Introduce yourself
    Replies: 0
    Last Post: 02-09-2022, 01:06 PM
  3. Automatically tracking the % a colored cell is used in a column
    By Rymc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2020, 04:30 PM
  4. How to count only colored cell and extract details of colored cell's row
    By bala04msw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2016, 07:03 AM
  5. [SOLVED] Macro to Insert Row Above Each Colored Cell in a List and Copy/Paste/Enter Data
    By thegivenbeing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-24-2015, 03:35 PM
  6. [SOLVED] Copy colored cell to other cells within the same sheet
    By roseannej78 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-20-2014, 03:20 PM
  7. [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

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