I want to copy background color for example sheetA cell A1 to
sheet B A1.
The cell A1 is using conditional formatting, I can copy simple but not with conditional formatting enabled.
Here is the code
Code
Dim strTemp As String
strTemp = Worksheets("sheetB").Range("A1").Formula
Worksheets("sheetA").Range("A1").Copy
Worksheets("sheetB").Range("A1").PasteSpecial xlPasteAllMergingConditionalFormats
Worksheets("sheetB").Range("A1").Formula = strTemp
The issue , is that my target cells are not populated correctly, see gif animation Link here