Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to conditional format in 3 colors in 2007 | Excel Discussion (Misc queries) | |||
colors and conditional format - greater than, less than | Excel Discussion (Misc queries) | |||
Cell colors on conditional format | Excel Discussion (Misc queries) | |||
format painter wont copy mixed font colors from one cell to next | Excel Discussion (Misc queries) | |||
Can't format font colors or cell fill-in colors | Excel Discussion (Misc queries) |