0

Hopefully a quickie.

I have a bizarre case of a cell having a background colour, but excel not recognising it as such.

Upon right click > format cell, no fill is shown, no rgb value assigned to this cell. but the cell is coloured and it can be copied only with VBA's .copy or the Paste Specials Keep Source Formatting and Values & Source Formatting

I would really like to know whats going on, as well as how to edit Tim's code here to copy this colour.

Thank you for your time.

4
  • 1
    Is it conditional formatting?
    – Vityata
    Nov 15, 2016 at 13:40
  • It might have been a long time ago, how would I be able to tell? Besides which its been vba copied onto the sheet i'm working on at the moment, so I don't think it is anymore. Nov 15, 2016 at 14:15
  • Select the cell and check the conditional format for this cell?
    – Vityata
    Nov 15, 2016 at 14:16
  • Ha, of course! I'm being silly. looks like 4 rules per cell. Nov 15, 2016 at 14:44

1 Answer 1

0

Conditional formatting is not recognized as a background color in VBA.

https://msdn.microsoft.com/en-us/library/office/ff822801.aspx

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.