ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy text cell & change text color conditionally (https://www.excelbanter.com/excel-programming/371910-copy-text-cell-change-text-color-conditionally.html)

manxman

Copy text cell & change text color conditionally
 
I want to copy text from cell A1 to cell C1, and if the text in A1 is red,
make C1 black, and vice-versa. There is no formula in A1.

Ian

Copy text cell & change text color conditionally
 
It should be possible with VBA code, but an easier option might be
conditional formatting. Is there anything specific about the value in A1
which determines the colour? Could you use this property to set a formatting
condition (eg is it red for negative numbers, black for positive. Is it
anything to do with the content eg part of the text, length of the string
etc)?

--
Ian
--
"manxman" wrote in message
...
I want to copy text from cell A1 to cell C1, and if the text in A1 is red,
make C1 black, and vice-versa. There is no formula in A1.




manxman

Copy text cell & change text color conditionally
 
The color of the text is completely independent of its value. The same
number is red in some cells, and black in others.

"Ian" wrote:

It should be possible with VBA code, but an easier option might be
conditional formatting. Is there anything specific about the value in A1
which determines the colour? Could you use this property to set a formatting
condition (eg is it red for negative numbers, black for positive. Is it
anything to do with the content eg part of the text, length of the string
etc)?

--
Ian
--
"manxman" wrote in message
...
I want to copy text from cell A1 to cell C1, and if the text in A1 is red,
make C1 black, and vice-versa. There is no formula in A1.






All times are GMT +1. The time now is 05:17 PM.

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