How to get the background color from a Conditional Formatting in Excel using VBA

前端 未结 4 728
北海茫月
北海茫月 2020-11-28 15:00

I would like to obtain the cell background color assigned using a conditional formatting rule in Excel in my VBA script. I realized that using Range.Interior.Color

4条回答
  •  离开以前
    2020-11-28 15:47

    .FormatCondition property of range or selection should help with any formatting Use With...End With

    If you want to know the exact color RGB values, u can just try recording macro and get the rgb values.

提交回复
热议问题