ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy conditional format colors to another cell (https://www.excelbanter.com/excel-programming/408356-copy-conditional-format-colors-another-cell.html)

davegb[_2_]

Copy conditional format colors to another cell
 
I have conditional formatting in cells A1 thru C1. I'd like to have a
macro open the conditional formatting box for A1, let me manually
enter new colors, then close the conditional formatting dialog and
have the code copy the colors for the font and background from A1 to
B1 and C1, leaving the conditions as they are in each individual cell.
I don't have a clue as to how to start getting those values from the
first cell, much less putting them into the conditional formatting for
the other cells without disturbing the formulas. This is part of a
larger macro that creates this spreadsheet. Does anyone know how to go
about this?
Thanks in advance.

Nigel[_2_]

Copy conditional format colors to another cell
 
Try using the macro recorder, this will generate some code that you can
adapt or reuse.

--

Regards,
Nigel




"davegb" wrote in message
...
I have conditional formatting in cells A1 thru C1. I'd like to have a
macro open the conditional formatting box for A1, let me manually
enter new colors, then close the conditional formatting dialog and
have the code copy the colors for the font and background from A1 to
B1 and C1, leaving the conditions as they are in each individual cell.
I don't have a clue as to how to start getting those values from the
first cell, much less putting them into the conditional formatting for
the other cells without disturbing the formulas. This is part of a
larger macro that creates this spreadsheet. Does anyone know how to go
about this?
Thanks in advance.



davegb[_2_]

Copy conditional format colors to another cell
 
On Mar 26, 11:56*am, "Nigel" wrote:
Try using the macro recorder, this will generate some code that you can
adapt or reuse.

--

Regards,
Nigel


"davegb" wrote in message

...



I have conditional formatting in cells A1 thru C1. I'd like to have a
macro open the conditional formatting box for A1, let me manually
enter new colors, then close the conditional formatting dialog and
have the code copy the colors for the font and background from A1 to
B1 and C1, leaving the conditions as they are in each individual cell.
I don't have a clue as to how to start getting those values from the
first cell, much less putting them into the conditional formatting for
the other cells without disturbing the formulas. This is part of a
larger macro that creates this spreadsheet. Does anyone know how to go
about this?
Thanks in advance.- Hide quoted text -


- Show quoted text -


Thanks, Nigel, but I already did that. I can copy the formatting, or
open the dialog box, but I can't figure out how to copy the color
values across that way.


All times are GMT +1. The time now is 02:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com